mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
update
This commit is contained in:
10
.github/workflows/check-audit.yml
vendored
10
.github/workflows/check-audit.yml
vendored
@@ -47,6 +47,14 @@ jobs:
|
|||||||
$duration = $endTime - $startTime
|
$duration = $endTime - $startTime
|
||||||
Write-Output "Duration: $duration"
|
Write-Output "Duration: $duration"
|
||||||
|
|
||||||
- name: Run
|
- name: Run WELA.ps1
|
||||||
run: |
|
run: |
|
||||||
./config/WELA.ps1
|
./config/WELA.ps1
|
||||||
|
|
||||||
|
- name: Output UsableRules.csv
|
||||||
|
run: |
|
||||||
|
Get-Content ./config/UsableRules.csv
|
||||||
|
|
||||||
|
- name: Output UnUsableRules.csv
|
||||||
|
run: |
|
||||||
|
Get-Content ./config/UnusableRules.csv
|
||||||
@@ -93,5 +93,5 @@ $utilizationPercentage = "{0:N2}" -f (($totalUsable / $totalRulesCount) * 100)
|
|||||||
Write-Output "You can only utilize $utilizationPercentage% of your Security detection rules."
|
Write-Output "You can only utilize $utilizationPercentage% of your Security detection rules."
|
||||||
|
|
||||||
# Step 7: Save the lists of usable and unusable rules to CSV files
|
# Step 7: Save the lists of usable and unusable rules to CSV files
|
||||||
$usableRules | Export-Csv -Path "UsableRules.csv" -NoTypeInformation
|
$usableRules | Select-Object title, level, id | Export-Csv -Path "UsableRules.csv" -NoTypeInformation
|
||||||
$unusableRules | Export-Csv -Path "UnusableRules.csv" -NoTypeInformation
|
$unusableRules | Select-Object title, level, id | Export-Csv -Path "UnusableRules.csv" -NoTypeInformation
|
||||||
|
|||||||
Reference in New Issue
Block a user