From 6f53e50297a4c2dab133a7779d17fcf038726b48 Mon Sep 17 00:00:00 2001 From: A13501350 <18516149786@163.com> Date: Tue, 21 Oct 2025 01:09:01 +0800 Subject: [PATCH] build: add ftw cloud test --- .github/workflows/test-ci-windows.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-ci-windows.yml b/.github/workflows/test-ci-windows.yml index 405a1186..f4fa32c7 100644 --- a/.github/workflows/test-ci-windows.yml +++ b/.github/workflows/test-ci-windows.yml @@ -298,4 +298,14 @@ jobs: Exit 1 } - Get-EventLog -LogName Application -Source ModSecurity | Format-List \ No newline at end of file + 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 +