diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b7459f4e..9060fe4c5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -74,7 +74,7 @@ jobs: - name: Run Gosec Security Scanner run: | export PATH=$PATH:$(go env GOPATH)/bin - go install github.com/securego/gosec/v2/cmd/gosec@latest + go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0 ./run_gosec.sh if [[ $? != 0 ]] then diff --git a/run_gosec.sh b/run_gosec.sh index be699db1d..8023217a9 100755 --- a/run_gosec.sh +++ b/run_gosec.sh @@ -3,7 +3,7 @@ if ! command -v gosec 2> /dev/null then - echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@latest" && exit 1 + echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0" && exit 1 fi gosec -no-fail -fmt=sarif -out=gosec.sarif -exclude-dir test -exclude-dir generator ./...