Add support for running govulncheck (#12654)

* Add support for running govulncheck

---------

Signed-off-by: 51n15t9r <utkarsh.khare@gmail.com>
This commit is contained in:
51n15t9r 2024-09-17 02:43:04 +05:30 committed by GitHub
parent 6acd3dee53
commit b6015e7c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,3 +275,9 @@ $(1)_precheck:
exit 1; \ exit 1; \
fi fi
endef endef
govulncheck: install-govulncheck
govulncheck ./...
install-govulncheck:
command -v govulncheck > /dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest