Skip to content

Commit 9381448

Browse files
Merge pull request #446 from openshift/mtsre-1413-govuln-make
adding scan target to makefile for govulncheck
2 parents f49c565 + ad94627 commit 9381448

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ ENABLE_MONITORING?="false"
4747
ENABLE_REMOTE_STORAGE_MOCK="true"
4848
WEBHOOK_PORT?=8080
4949
TESTOPTS?=-cover -race -v
50+
GOVULNCHECK_VERSION=v1.0.1
5051

5152
# Container
5253
IMAGE_ORG?=quay.io/app-sre
@@ -312,3 +313,9 @@ clean-config-openshift:
312313
.PHONY: coverage
313314
coverage:
314315
hack/codecov.sh
316+
317+
ensure-govulncheck:
318+
@ls $(GOPATH)/bin/govulncheck 1>/dev/null || go install golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION}
319+
320+
scan: ensure-govulncheck
321+
govulncheck ./...

0 commit comments

Comments
 (0)