aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-09-10 19:51:29 +0200
committerGitHub <noreply@github.com>2022-09-10 19:51:29 +0200
commit896d7cb1b03d449f399bd835693188c3910866a5 (patch)
tree9feec74ad7beea92ca4d0d5572f3b980f54319ae /Makefile
parentd0db3b121bb9b0b8ec007c3a12cec015dc7c77d7 (diff)
parent8bd98454def2e76f30aabcd1ac284bbbf48d8ad5 (diff)
downloadgit-bug-896d7cb1b03d449f399bd835693188c3910866a5.tar.gz
Merge pull request #868 from MichaelMure/feat-security-checks
feat: check security via `make` recipe and Github check
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 56553936..2d12a016 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-practices