Skip to content

Commit 04373ec

Browse files
fix gosec v2.14.0 (#1034)
Signed-off-by: Michael Valdron <[email protected]>
1 parent d43d0ff commit 04373ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Run Gosec Security Scanner
7575
run: |
7676
export PATH=$PATH:$(go env GOPATH)/bin
77-
go install github.com/securego/gosec/v2/cmd/gosec@latest
77+
go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0
7878
./run_gosec.sh
7979
if [[ $? != 0 ]]
8080
then

Diff for: run_gosec.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
if ! command -v gosec 2> /dev/null
55
then
6-
echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@latest" && exit 1
6+
echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0" && exit 1
77
fi
88

99
gosec -no-fail -fmt=sarif -out=gosec.sarif -exclude-dir test -exclude-dir generator ./...

0 commit comments

Comments
 (0)