fix: go-ftw command

This commit is contained in:
A13501350
2025-10-21 01:45:17 +08:00
parent e6192b8056
commit fa4166ffd9

View File

@@ -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