mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 09:02:15 +03:00
fix: go-ftw command
This commit is contained in:
10
.github/workflows/test-ci-windows.yml
vendored
10
.github/workflows/test-ci-windows.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user