From 1dc45a7906720fa5b9b794a4407391d23d3f5977 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Wed, 15 Feb 2023 11:04:56 -0500 Subject: [PATCH] fix gosec v2.14.0 Signed-off-by: Michael Valdron --- .github/workflows/ci.yaml | 2 +- run_gosec.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ./...