Skip to content

Commit

Permalink
Add new make file target to run gosec and govulncheck
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuKarthikRavindran authored and Chnwanze committed Oct 1, 2024
1 parent a1fa21b commit 2b4b75d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,13 @@ build-tests-windows: copy-src copy-tests-src pre-build
lint:
# if you want to configure what linters are run, edit .golangci.yml
$(GO_SPACE)/Tools/src/run_golangci-lint.sh

# simple version of analyze target
.PHONY: security-check
security-check:
gosec -quiet -severity high -confidence high $(GO_SPACE)/agent/... $(GO_SPACE)/core/... $(GO_SPACE)/common/... $(GO_SPACE)/internal/...

.PHONY: vuln-check
vuln-check:
govulncheck $(GO_SPACE)/agent/... $(GO_SPACE)/core/... $(GO_SPACE)/common/... $(GO_SPACE)/internal/...

0 comments on commit 2b4b75d

Please sign in to comment.