From 0b4967e7174f0ce8b03885f06148dcd78d9dabb3 Mon Sep 17 00:00:00 2001 From: Miguel Fernandes Date: Thu, 26 Sep 2024 23:03:52 +0100 Subject: [PATCH] chore: add govulncheck to check for vulnerabilities in the code --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d536931..202cd83 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ run/example: ## lint: run Go linters (golangci-lint) .PHONY: lint -lint: ## Runs lint +lint: @echo 'Linting code...' golangci-lint run @@ -35,6 +35,12 @@ audit: vendor lint @echo 'Running tests...' go test -v -race -vet=off +## vulncheck: check for known vulnerabilities +.PHONY: vulncheck +vulncheck: + @echo 'Checking for vulnerabilities...' + govulncheck -show verbose ./... + ## vendor: tidy and vendor dependencies .PHONY: vendor vendor: