From 0c4cd5663635c69ad5d7feb3b35527c0c61bd00a Mon Sep 17 00:00:00 2001 From: Corey Quon Date: Wed, 11 Mar 2020 18:39:46 -0700 Subject: [PATCH] Fix gosec linting errors (Skip G306 and fix G307) Signed-off-by: Corey Quon --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5fb9eabd6e..c2ff856e95 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ endif # gosec - requires that the following be run first: # go get -u github.com/securego/gosec/cmd/gosec/... @rm -f gosec_output.csv - @gosec -fmt=csv -out=gosec_output.csv -exclude=G104,G304 ./... || (cat gosec_output.csv >&2; exit 1) + @gosec -fmt=csv -out=gosec_output.csv -exclude=G104,G304,G306 ./... || (cat gosec_output.csv >&2; exit 1) build: @echo "+ $@"