Skip to content

Commit 3a02bd9

Browse files
authoredSep 7, 2022
chore: add govulncheck to ci (#2471)
1 parent 0a4bf73 commit 3a02bd9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ verify: codegen ## Verify code. Includes dependencies, linting, formatting, etc
7171
fi;}
7272
@echo "Validating codegen/docgen build scripts..."
7373
@find hack/code hack/docs -name "*.go" -type f -exec go build -o /dev/null {} \;
74+
@govulncheck ./pkg/...
7475

7576
licenses: ## Verifies dependency licenses
7677
go mod download

‎hack/toolchain.sh

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tools() {
1919
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0
2020
go install github.com/sigstore/cosign/cmd/cosign@v1.10.0
2121
go install github.com/gohugoio/hugo@v0.97.3+extended
22+
go install golang.org/x/vuln/cmd/govulncheck@v0.0.0-20220902211423-27dd78d2ca39
2223

2324
if ! echo "$PATH" | grep -q "${GOPATH:-undefined}/bin\|$HOME/go/bin"; then
2425
echo "Go workspace's \"bin\" directory is not in PATH. Run 'export PATH=\"\$PATH:\${GOPATH:-\$HOME/go}/bin\"'."

0 commit comments

Comments
 (0)
Please sign in to comment.