mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
fix: go bin location
This commit is contained in:
11
.github/workflows/test-ci-windows.yml
vendored
11
.github/workflows/test-ci-windows.yml
vendored
@@ -306,6 +306,13 @@ jobs:
|
|||||||
$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
|
go install github.com/coreruleset/go-ftw@latest
|
||||||
cd go\bin
|
$goBinPath = ""
|
||||||
& go-ftw.exe -d $testRuleDir --cloud -e 920380-1 --show-failures-only
|
if ($env:GOBIN) {
|
||||||
|
$goBinPath = $env:GOBIN
|
||||||
|
} elseif ($env:GOPATH) {
|
||||||
|
$goBinPath = Join-Path $env:GOPATH "bin"
|
||||||
|
} else {
|
||||||
|
$goBinPath = Join-Path $env:USERPROFILE "go\bin"
|
||||||
|
}
|
||||||
|
& "$goBinPath\go-ftw.exe" -d $testRuleDir --cloud -e 920380-1 --show-failures-only
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user