mirror of
https://github.com/securego/gosec.git
synced 2025-02-05 13:04:47 +02:00
Add vulncheck to the test steps
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
180fc23b72
commit
84f6424ac9
9
Makefile
9
Makefile
@ -22,7 +22,10 @@ install-test-deps:
|
||||
$(GO_NOMOD) get -u golang.org/x/crypto/ssh
|
||||
$(GO_NOMOD) get -u github.com/lib/pq
|
||||
|
||||
test: install-test-deps build fmt lint sec
|
||||
install-govulncheck:
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
test: install-test-deps build fmt lint sec govulncheck
|
||||
$(GINKGO) -v --fail-fast
|
||||
|
||||
fmt:
|
||||
@ -45,6 +48,10 @@ sec:
|
||||
@echo "SECURITY SCANNING"
|
||||
./$(BIN) ./...
|
||||
|
||||
govulncheck: install-govulncheck
|
||||
@echo "CHECKING VULNERABILITIES"
|
||||
govulncheck ./...
|
||||
|
||||
test-coverage: install-test-deps
|
||||
go test -race -v -count=1 -coverprofile=coverage.out ./...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user