mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 16:02:28 +00:00
Add support for running govulncheck (#12654)
* Add support for running govulncheck --------- Signed-off-by: 51n15t9r <utkarsh.khare@gmail.com>
This commit is contained in:
parent
6acd3dee53
commit
b6015e7c73
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user