mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-19 07:23:07 +01:00
test: add powershell core/destop case
This commit is contained in:
20
.github/workflows/check-audit.yml
vendored
20
.github/workflows/check-audit.yml
vendored
@@ -13,52 +13,52 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Check PowerShell version
|
- name: Check PowerShell version(PowerShell core)
|
||||||
run: |
|
run: |
|
||||||
$PSVersionTable.PSVersion
|
$PSVersionTable.PSVersion
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Run WELA.ps1 audit-settings
|
- name: Run WELA.ps1 audit-settings(PowerShell core)
|
||||||
run: |
|
run: |
|
||||||
./WELA.ps1 audit-settings
|
./WELA.ps1 audit-settings
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Run WELA.ps1 audit-filesize
|
- name: Run WELA.ps1 audit-filesize(PowerShell core)
|
||||||
run: |
|
run: |
|
||||||
./WELA.ps1 audit-filesize
|
./WELA.ps1 audit-filesize
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Output UsableRules.csv
|
- name: Output UsableRules.csv(PowerShell core)
|
||||||
run: |
|
run: |
|
||||||
Get-Content UsableRules.csv
|
Get-Content UsableRules.csv
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Output UnUsableRules.csv
|
- name: Output UnUsableRules.csv(PowerShell core)
|
||||||
run: |
|
run: |
|
||||||
Get-Content UnusableRules.csv
|
Get-Content UnusableRules.csv
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Check PowerShell version
|
- name: Check PowerShell version(PowerShell 5.1)
|
||||||
run: |
|
run: |
|
||||||
$PSVersionTable.PSVersion
|
$PSVersionTable.PSVersion
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Run WELA.ps1 audit-settings
|
- name: Run WELA.ps1 audit-settings(PowerShell 5.1)
|
||||||
run: |
|
run: |
|
||||||
./WELA.ps1 audit-settings
|
./WELA.ps1 audit-settings
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Run WELA.ps1 audit-filesize
|
- name: Run WELA.ps1 audit-filesize(PowerShell 5.1)
|
||||||
run: |
|
run: |
|
||||||
./WELA.ps1 audit-filesize
|
./WELA.ps1 audit-filesize
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Output UsableRules.csv
|
- name: Output UsableRules.csv(PowerShell 5.1)
|
||||||
run: |
|
run: |
|
||||||
Get-Content UsableRules.csv
|
Get-Content UsableRules.csv
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Output UnUsableRules.csv
|
- name: Output UnUsableRules.csv(PowerShell 5.1)
|
||||||
run: |
|
run: |
|
||||||
Get-Content UnusableRules.csv
|
Get-Content UnusableRules.csv
|
||||||
shell: powershell
|
shell: powershell
|
||||||
Reference in New Issue
Block a user