build: add ftw cloud test

This commit is contained in:
A13501350
2025-10-21 01:09:01 +08:00
parent 65546f0a19
commit 6f53e50297

View File

@@ -298,4 +298,14 @@ jobs:
Exit 1 Exit 1
} }
Get-EventLog -LogName Application -Source ModSecurity | Format-List Get-EventLog -LogName Application -Source ModSecurity | Format-List
- name: Test ModSecurity Rules
shell: pwsh
run: |
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
go install github.com/coreruleset/go-ftw@latest
cd go\bin
& go-ftw.exe -d $testRuleDir --cloud -e 920380-1 --show-failures-only