mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Add run-govulncheck Makefile target
Add a `Makefile` target to run govuln across the submodules. So, it can be imported into a prow job. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
45f14539e0
commit
043096067f
7
Makefile
7
Makefile
@ -164,6 +164,13 @@ ifeq (, $(shell which yamlfmt))
|
||||
endif
|
||||
yamlfmt -conf tools/.yamlfmt .
|
||||
|
||||
.PHONY: run-govulncheck
|
||||
run-govulncheck:
|
||||
ifeq (, $(shell which govulncheck))
|
||||
$(shell go install golang.org/x/vuln/cmd/govulncheck@latest)
|
||||
endif
|
||||
PASSES="govuln" ./scripts/test.sh
|
||||
|
||||
# Tools
|
||||
|
||||
GOLANGCI_LINT_VERSION = $(shell cd tools/mod && go list -m -f {{.Version}} github.com/golangci/golangci-lint)
|
||||
|
@ -366,6 +366,10 @@ function markdown_marker_pass {
|
||||
fi
|
||||
}
|
||||
|
||||
function govuln_pass {
|
||||
run_for_modules run govulncheck -show verbose
|
||||
}
|
||||
|
||||
function govet_pass {
|
||||
run_for_modules generic_checker run go vet
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user