From 3344e3d3cc12445c7803e606a8f946aa55112dc7 Mon Sep 17 00:00:00 2001 From: Ricardo Pchevuzinske Katz Date: Thu, 28 Aug 2025 17:42:09 -0300 Subject: [PATCH] NOJIRA: Add a govulncheck make target --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index bc16a3588..861ab4f3c 100644 --- a/Makefile +++ b/Makefile @@ -85,3 +85,18 @@ run-local: build clean: $(GO) clean rm -f $(BIN) + +LOCALBIN ?= $(shell pwd)/tmp +GOVULNCHECK = $(LOCALBIN)/govulncheck + +.PHONY: vulncheck +vulncheck: $(GOVULNCHECK) + $(GOVULNCHECK) ./... + +# Dependencies / Tools specifics + +$(LOCALBIN): + [ -d $@ ] || mkdir -p $@ + +$(GOVULNCHECK): $(LOCALBIN) + GOBIN=$(LOCALBIN) go install golang.org/x/vuln/cmd/govulncheck@latest