aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-09-08 17:20:51 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-09-08 17:20:51 -0400
commitec7395589d66b0014506a7ff2908dc206ec18f89 (patch)
treec8ae2cd5f9cc63a3d1f12421d2dcf48a771d1dce /Makefile
parent1dcdee49a84b9397ba12ac7dc8002b95f7fd26db (diff)
downloadgit-bug-ec7395589d66b0014506a7ff2908dc206ec18f89.tar.gz
feat: add recipes for security analysis
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
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