File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ name : go vulnerability detect
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ vulnerability_detect :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@main
11+ - uses : actions/setup-go@main
12+ with :
13+ go-version : 1.18
14+ - name : run vulnerability detect
15+ run : make govulncheck
Original file line number Diff line number Diff line change @@ -144,6 +144,12 @@ test-verbose: ginkgo-set tidy-vendor
144144escapes_detect : tidy-vendor
145145 @go build -tags $(GO_BUILD_TAGS ) -gcflags=" -m -l" ./... | grep " escapes to heap" || true
146146
147+ set_govulncheck :
148+ @go install golang.org/x/vuln/cmd/govulncheck@latest
149+
150+ govulncheck : set_govulncheck tidy-vendor
151+ @govulncheck -v ./... || true
152+
147153format :
148154 gofmt -e -d -s -l -w pkg/ cmd/
149155
You can’t perform that action at this time.
0 commit comments