Skip to content

Commit ac5e5ef

Browse files
authored
Merge pull request #2633 from Nordix/lentzi90/govulncheck-args
🌱 Makefile: Add arguments for govulncheck
2 parents 0486adb + f53cc3c commit ac5e5ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ PULL_POLICY ?= Always
120120
# Set build time variables including version details
121121
LDFLAGS := $(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
599601
verify-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

0 commit comments

Comments
 (0)