on main help sign in
fix(ci): update security workflow to use setup-go and install govulncheck
340defdAyman Bagabas
.github/workflows/security.yml+7−4
@@ -65,11 +65,14 @@ jobs:
65 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
65 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
66 with:
66 with:
67 persist-credentials: false
67 persist-credentials: false
68− - uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
68+ - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
69 with:
69 with:
70− output-format: sarif
71− output-file: results.sarif
72− go-version-input: 1.26.0-rc.1 # change to "stable" once Go 1.26 is released
70+ go-version: 1.26.0-rc.1 # change to "stable" once Go 1.26 is released
71+ - name: Install govulncheck
72+ run: go install golang.org/x/vuln/cmd/govulncheck@latest
73+ - name: Run govulncheck
74+ run: |
75+ govulncheck -C . -format sarif ./... > results.sarif
73 - uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
76 - uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
74 with:
77 with:
75 sarif_file: results.sarif
78 sarif_file: results.sarif