Skip to content

Commit

Permalink
Fixing gosec error (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyamurthy authored Nov 24, 2023
1 parent a5e5b28 commit f2a0670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ version:
make -f docker.mk version

gosec:
gosec -quiet -log gosec.log -out=gosecresults.csv -fmt=csv ./...
ifeq (, $(shell which gosec))
go install github.com/securego/gosec/v2/cmd/gosec@latest
$(shell $(GOBIN)/gosec -quiet -log gosec.log -out=gosecresults.csv -fmt=csv ./...)
else
$(shell gosec -quiet -log gosec.log -out=gosecresults.csv -fmt=csv ./...)
endif
@echo "Logs are stored at gosec.log, Outputfile at gosecresults.csv"

golint:
ifeq (, $(shell which golint))
Expand Down

0 comments on commit f2a0670

Please sign in to comment.