We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db11a4 commit 6ad9364Copy full SHA for 6ad9364
config/WELA.ps1
@@ -9,7 +9,6 @@ $filteredOutput | ForEach-Object {
9
$extractedStrings.Add($matches[1])
10
}
11
12
-Write-Host $extractedStrings
13
14
# Step 2: Read the rules from security_rules.json
15
$jsonFilePath = "./config/security_rules.json"
@@ -18,7 +17,7 @@ $jsonContent = Get-Content -Path $jsonFilePath -Raw | ConvertFrom-Json
18
17
foreach ($rule in $jsonContent) {
19
$rule | Add-Member -MemberType NoteProperty -Name "applicable" -Value $false
20
foreach ($guid in $rule.subcategory_guids) {
21
- if ($filteredOutput -contains $guid) {
+ if ($extractedStrings.Contains($guid)) {
22
$rule.applicable = $true
23
break
24
0 commit comments