Skip to content

Commit 8bf4718

Browse files
committed
Update govulncheck step
1 parent be8fcee commit 8bf4718

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/security.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,18 @@ jobs:
3636
runs-on: ubuntu-24.04
3737
steps:
3838
- uses: actions/checkout@v6
39-
- uses: arnested/go-version-action@v1
40-
id: go-version
39+
- name: Setup Go
40+
uses: actions/setup-go@v6
4141
with:
42-
patch-level: true
42+
go-version-file: go.mod
4343
- id: govulncheck
44-
uses: golang/govulncheck-action@master
44+
uses: arnested/govulncheck-action@main
4545
with:
46-
go-version-input: ${{ steps.go-version.outputs.latest }}
4746
output-format: sarif
4847
output-file: results.sarif
48+
setup-go: false
4949
repo-checkout: false
50-
- name: Fix SARIF format
51-
run: yq --inplace --output-format json '.runs |= map ({"results":[]} + .)' results.sarif
52-
- name: Upload SARIF file
50+
- name: Upload SARIF file
5351
uses: github/codeql-action/upload-sarif@v4
5452
with:
5553
sarif_file: results.sarif

0 commit comments

Comments
 (0)