Skip to content

Commit d30d8d0

Browse files
committed
update
1 parent f47d194 commit d30d8d0

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/check-audit.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ jobs:
4747
$duration = $endTime - $startTime
4848
Write-Output "Duration: $duration"
4949
50-
- name: Run
50+
- name: Run WELA.ps1
5151
run: |
52-
./config/WELA.ps1
52+
./config/WELA.ps1
53+
54+
- name: Output UsableRules.csv
55+
run: |
56+
Get-Content ./config/UsableRules.csv
57+
58+
- name: Output UnUsableRules.csv
59+
run: |
60+
Get-Content ./config/UnusableRules.csv

config/WELA.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ $utilizationPercentage = "{0:N2}" -f (($totalUsable / $totalRulesCount) * 100)
9393
Write-Output "You can only utilize $utilizationPercentage% of your Security detection rules."
9494

9595
# Step 7: Save the lists of usable and unusable rules to CSV files
96-
$usableRules | Export-Csv -Path "UsableRules.csv" -NoTypeInformation
97-
$unusableRules | Export-Csv -Path "UnusableRules.csv" -NoTypeInformation
96+
$usableRules | Select-Object title, level, id | Export-Csv -Path "UsableRules.csv" -NoTypeInformation
97+
$unusableRules | Select-Object title, level, id | Export-Csv -Path "UnusableRules.csv" -NoTypeInformation

0 commit comments

Comments
 (0)