From fa4166ffd97b6798414ea3846c330f09653d2fad Mon Sep 17 00:00:00 2001 From: A13501350 <18516149786@163.com> Date: Tue, 21 Oct 2025 01:45:17 +0800 Subject: [PATCH] fix: go-ftw command --- .github/workflows/test-ci-windows.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-ci-windows.yml b/.github/workflows/test-ci-windows.yml index 35614cb7..adc5a874 100644 --- a/.github/workflows/test-ci-windows.yml +++ b/.github/workflows/test-ci-windows.yml @@ -300,12 +300,15 @@ jobs: Get-EventLog -LogName Application -Source ModSecurity | Format-List + - name: Install go-ftw + shell: pwsh + run: | + go install github.com/coreruleset/go-ftw@latest + - 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 $goBinPath = "" if ($env:GOBIN) { $goBinPath = $env:GOBIN @@ -314,5 +317,6 @@ jobs: } else { $goBinPath = Join-Path $env:USERPROFILE "go\bin" } - & "$goBinPath\go-ftw.exe" -d $testRuleDir --cloud -e 920380-1 --show-failures-only + + & "$goBinPath\go-ftw.exe" run -d $testRuleDir --cloud -e 920380-1 --show-failures-only