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

@@ -299,3 +299,13 @@ jobs:
}
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