mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +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
|
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
|
- name: Test ModSecurity Rules
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
|
$testRuleDir = "C:\Program Files\ModSecurity IIS\coreruleset\tests\regression\tests"
|
||||||
|
|
||||||
go install github.com/coreruleset/go-ftw@latest
|
|
||||||
$goBinPath = ""
|
$goBinPath = ""
|
||||||
if ($env:GOBIN) {
|
if ($env:GOBIN) {
|
||||||
$goBinPath = $env:GOBIN
|
$goBinPath = $env:GOBIN
|
||||||
@@ -314,5 +317,6 @@ jobs:
|
|||||||
} else {
|
} else {
|
||||||
$goBinPath = Join-Path $env:USERPROFILE "go\bin"
|
$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