Skip to content

Commit

Permalink
Add support for running govulncheck (prometheus#12654)
Browse files Browse the repository at this point in the history
* Add support for running govulncheck

---------

Signed-off-by: 51n15t9r <utkarsh.khare@gmail.com>
  • Loading branch information
51n15t9r authored Sep 16, 2024
1 parent 6acd3de commit b6015e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,9 @@ $(1)_precheck:
exit 1; \
fi
endef

govulncheck: install-govulncheck
govulncheck ./...

install-govulncheck:
command -v govulncheck > /dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest

0 comments on commit b6015e7

Please sign in to comment.