Skip to content

Commit 3f55855

Browse files
committed
Update govulncheck workflow to scan source code
Changed govulncheck to run on all source files (./...) instead of the built binary. This fixes uploading to GitHub Code Scanning as the location data will be valid, so it will get accepted.
1 parent dd26fba commit 3f55855

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/govulncheck.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
# See https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck#hdr-Exit_codes for more information on exit codes.
2222
- name: Check Go vulnerabilities
2323
run: |
24-
make
25-
go run golang.org/x/vuln/cmd/govulncheck@d1f380186385b4f64e00313f31743df8e4b89a77 -mode=binary -format sarif bin/gh > gh.sarif
24+
go run golang.org/x/vuln/cmd/govulncheck@d1f380186385b4f64e00313f31743df8e4b89a77 -format sarif ./... > gh.sarif
2625
2726
- name: Upload SARIF report
2827
uses: github/codeql-action/upload-sarif@9b02dc2f60288b463e7a66e39c78829b62780db7 # 2.22.1

0 commit comments

Comments
 (0)