44help :
55 @echo " Available targets:"
66 @echo " test - Run all tests"
7- @echo " lint - Run linters (golangci-lint)"
8- @echo " security - Run security scanner (gosec )"
7+ @echo " lint - Run linters (golangci-lint with gosec )"
8+ @echo " security - Run vulnerability check (govulncheck )"
99 @echo " coverage - Run tests with coverage report"
1010 @echo " benchmark - Run benchmarks"
1111 @echo " clean - Clean build artifacts"
@@ -24,14 +24,14 @@ lint:
2424 @echo " Running linters..."
2525 golangci-lint run
2626
27- # Run security scanner
27+ # Run security scanner (vulnerability check)
2828security :
29- @echo " Running security scanner ..."
30- @if which gosec > /dev/null 2>&1 ; then \
31- gosec -quiet ./...; \
29+ @echo " Running vulnerability check ..."
30+ @if which govulncheck > /dev/null 2>&1 ; then \
31+ govulncheck ./...; \
3232 else \
33- echo " WARNING: gosec not installed. Run 'make tools' to install it." ; \
34- echo " Skipping security scan ..." ; \
33+ echo " WARNING: govulncheck not installed. Run 'make tools' to install it." ; \
34+ echo " Skipping vulnerability check ..." ; \
3535 fi
3636
3737# Run tests with coverage
@@ -66,7 +66,7 @@ verify: fmt test lint security
6666tools :
6767 @echo " Installing development tools..."
6868 go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
69- go install github.com/securego/gosec/v2/ cmd/gosec @latest
69+ go install golang.org/x/vuln/ cmd/govulncheck @latest
7070
7171# CI pipeline checks (used in GitHub Actions)
7272ci : test lint security
0 commit comments