mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
Add vulncheck to the test steps
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
180fc23b72
commit
84f6424ac9
1 changed files with 8 additions and 1 deletions
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…
Reference in a new issue