Skip to content

Commit 6ad9364

Browse files
committed
update
1 parent 5db11a4 commit 6ad9364

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/WELA.ps1

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $filteredOutput | ForEach-Object {
99
$extractedStrings.Add($matches[1])
1010
}
1111
}
12-
Write-Host $extractedStrings
1312

1413
# Step 2: Read the rules from security_rules.json
1514
$jsonFilePath = "./config/security_rules.json"
@@ -18,7 +17,7 @@ $jsonContent = Get-Content -Path $jsonFilePath -Raw | ConvertFrom-Json
1817
foreach ($rule in $jsonContent) {
1918
$rule | Add-Member -MemberType NoteProperty -Name "applicable" -Value $false
2019
foreach ($guid in $rule.subcategory_guids) {
21-
if ($filteredOutput -contains $guid) {
20+
if ($extractedStrings.Contains($guid)) {
2221
$rule.applicable = $true
2322
break
2423
}

0 commit comments

Comments
 (0)