Skip to content

Commit

Permalink
Update seccheck download method
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Jul 8, 2024
1 parent 7a7e52a commit 467b139
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ lint: runtime
# G404 (CWE-338): Use of weak random number generator (math/rand instead of crypto/rand).
.PHONY: seccheck
seccheck: runtime
cd tools && go install github.com/securego/gosec/v2/cmd/gosec@latest
if [ ! -f $(GOPATH)/bin/gosec ]; \
then \
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.20.0; \
fi;
$(GOPATH)/bin/gosec -exclude=G104,G108,G110,G112,G114,G204,G304,G402,G404 -exclude-dir .history ./...

.PHONY: clean
Expand Down

0 comments on commit 467b139

Please sign in to comment.