build: update scripts go.(mod|sum) (#19834)

* build: update scripts go.(mod|sum)

* build: exclude gosec rule G108

Gosec rule G108: Profiling endpoint automatically exposed on /debug/pprof
is not applicable since we only enable /debug/pprof endpoint if -profile
flag is provided when starting grafana.
This commit is contained in:
Kyle Brandt
2019-10-16 04:52:51 -04:00
committed by Marcus Efraimsson
parent af885b2350
commit 84609abdfa
3 changed files with 37 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ revive-alerting: scripts/go/bin/revive
gosec: scripts/go/bin/gosec
@echo "lint via gosec"
@scripts/go/bin/gosec -quiet \
-exclude=G104,G107,G201,G202,G204,G301,G304,G401,G402,G501 \
-exclude=G104,G107,G108,G201,G202,G204,G301,G304,G401,G402,G501 \
-conf=./scripts/go/configs/gosec.json \
$(GO_FILES)