mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Check go version when installing govulncheck
govulncheck supports only go 1.18 or greater Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
88c23deb88
commit
e9b2781247
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -25,7 +25,9 @@ install-test-deps:
|
||||||
$(GO_NOMOD) get -u github.com/lib/pq
|
$(GO_NOMOD) get -u github.com/lib/pq
|
||||||
|
|
||||||
install-govulncheck:
|
install-govulncheck:
|
||||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
@if [ $(GO_MINOR_VERSION) -gt $(GOVULN_MIN_VERSION) ]; then \
|
||||||
|
go install golang.org/x/vuln/cmd/govulncheck@latest; \
|
||||||
|
fi
|
||||||
|
|
||||||
test: install-test-deps build fmt lint sec govulncheck
|
test: install-test-deps build fmt lint sec govulncheck
|
||||||
$(GINKGO) -v --fail-fast
|
$(GINKGO) -v --fail-fast
|
||||||
|
|
Loading…
Reference in a new issue