File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ PULL_POLICY ?= Always
120120# Set build time variables including version details
121121LDFLAGS := $(shell source ./hack/version.sh; version::ldflags)
122122
123+ # Extra arguments for govulncheck, e.g. "-show verbose"
124+ GOVULNCHECK_ARGS ?=
123125
124126# # --------------------------------------
125127# #@ Testing
@@ -597,8 +599,8 @@ verify-container-images: ## Verify container images
597599
598600.PHONY : verify-govulncheck
599601verify-govulncheck : $(GOVULNCHECK ) # # Verify code for vulnerabilities
600- $(GOVULNCHECK ) ./... && R1=$$? || R1=$$? ; \
601- $(GOVULNCHECK ) -C " $( TOOLS_DIR) " ./... && R2=$$? || R2=$$? ; \
602+ $(GOVULNCHECK ) $( GOVULNCHECK_ARGS ) ./... && R1=$$? || R1=$$? ; \
603+ $(GOVULNCHECK ) $( GOVULNCHECK_ARGS ) -C " $( TOOLS_DIR) " ./... && R2=$$? || R2=$$? ; \
602604 if [ " $$ R1" -ne " 0" ] || [ " $$ R2" -ne " 0" ]; then \
603605 exit 1; \
604606 fi
You can’t perform that action at this time.
0 commit comments