From 0746e76ecd544edbcaf413299fe729db1d167731 Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Sun, 25 Aug 2019 19:15:39 -0500 Subject: [PATCH] add verify to Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 37db7b1..c63bc70 100644 --- a/Makefile +++ b/Makefile @@ -43,3 +43,14 @@ pack-releases: .PHONY: release release: goreleaser release --rm-dist + +.PHONY: verify +verify: install-tools + golangci-lint run + gosec -severity high --confidence medium -exclude G204 -quiet ./... + + +.PHONY: install-tools +install-tools: + cd $(shell mktemp -d) && GO111MODULE=on go get github.com/securego/gosec/cmd/gosec@4b59c948083cd711b6a8aac8f32721b164899f57 + cd $(shell mktemp -d) && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1