diff --git a/Makefile b/Makefile index f11c6da1..2b3c4cb0 100644 --- a/Makefile +++ b/Makefile @@ -67,3 +67,11 @@ ifeq (, $(shell which gosec)) } endif cd $(CURDIR); gosec ./... + +.PHONY: scan +scan: + if ! command -v govulncheck > /dev/null; then \ + go install golang.org/x/vuln/cmd/govulncheck@latest ;\ + fi + cd $(CURDIR);\ + govulncheck -test ./... ; \ No newline at end of file