Skip to content

Commit de2564f

Browse files
committed
fix: install crs path
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent 360691b commit de2564f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test-ci-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ jobs:
314314
}
315315
316316
$modSecurityConfigFile = "$modSecurityConfigDir\modsecurity_iis.conf"
317+
$modsecConf = "$modSecurityConfigDir\modsecurity.conf"
317318
318319
$crsRules = @(
319320
"Include coreruleset/crs-setup.conf",
@@ -325,8 +326,7 @@ jobs:
325326
326327
Add-Content -Path $modSecurityConfigFile -Value $crsRules
327328
328-
(Get-Content -Path "$modSecurityConfigDir\modsecurity.conf") -replace 'SecRuleEngine DetectionOnly', 'SecRuleEngine On' | Set-Content -Path "$modSecurityConfigDir\modsecurity.conf"
329-
329+
(Get-Content -Path $modsecConf) -replace 'SecRuleEngine DetectionOnly', 'SecRuleEngine On' | Set-Content -Path $modsecConf
330330
}
331331
catch {
332332
Write-Error "Failed to install OWASP Core Rules: $($_.Exception.Message)"

0 commit comments

Comments
 (0)