From ec7395589d66b0014506a7ff2908dc206ec18f89 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Thu, 8 Sep 2022 17:20:51 -0400 Subject: feat: add recipes for security analysis --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56553936..799995e4 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,16 @@ releases: go generate gox -ldflags "$(LDFLAGS)" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" +secure: secure-practices secure-vulnerabilities + +secure-practices: + go install github.com/praetorian-inc/gokart + gokart scan + +secure-vulnerabilities: + go install golang.org/x/vuln/cmd/govulncheck@latest + govulncheck ./... + test: go test -v -bench=. ./... @@ -59,3 +69,4 @@ clean-remote-identities: git ls-remote origin "refs/identities/*" | cut -f 2 | $(XARGS) git push origin -d .PHONY: build install releases test pack-webui debug-webui clean-local-bugs clean-remote-bugs +.PHONY: secure secure-vulnerabilities secure-practice -- cgit From 8bd98454def2e76f30aabcd1ac284bbbf48d8ad5 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Thu, 8 Sep 2022 17:44:25 -0400 Subject: fix: correct name for one of the security phonies --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 799995e4..2d12a016 100644 --- a/Makefile +++ b/Makefile @@ -69,4 +69,4 @@ clean-remote-identities: git ls-remote origin "refs/identities/*" | cut -f 2 | $(XARGS) git push origin -d .PHONY: build install releases test pack-webui debug-webui clean-local-bugs clean-remote-bugs -.PHONY: secure secure-vulnerabilities secure-practice +.PHONY: secure secure-vulnerabilities secure-practices -- cgit