Skip to content

Commit bc1aed1

Browse files
committed
Fix govulncheck CI check on main branch
This commit fixed the Go Vulnerability Checker CI job, which isn't scanning for all go.mod files within the project. Reference: - #18168 Signed-off-by: Chun-Hung Tseng <[email protected]>
1 parent 260dd77 commit bc1aed1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/govuln.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ jobs:
1616
- run: |
1717
set -euo pipefail
1818
19-
go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
19+
go install golang.org/x/vuln/cmd/govulncheck@latest
20+
21+
find -name go.mod -exec /bin/bash -c 'echo scanning $(dirname {}); govulncheck -C $(dirname {}) -show verbose ./...' \;

0 commit comments

Comments
 (0)