Skip to content

Commit e6b2758

Browse files
chore: test govulncheck sarif format
1 parent ca4f95d commit e6b2758

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,21 @@ jobs:
106106
name: Vulnerability Check
107107
runs-on: ubuntu-latest
108108
steps:
109-
- id: govulncheck
109+
- name: Checkout repository
110+
uses: actions/checkout@v4
111+
- name: Run govulncheck
112+
id: govulncheck
110113
uses: golang/govulncheck-action@v1
111114
with:
112115
go-version-file: go.mod
113116
go-package: ./...
114-
output-format: text
117+
output-format: sarif
118+
output-file: govulncheck.sarif
119+
- name: Upload SARIF to GitHub Code Scanning
120+
if: always()
121+
uses: github/codeql-action/upload-sarif@v3
122+
with:
123+
sarif_file: govulncheck.sarif
115124
trigger-beekeeper:
116125
name: Trigger Beekeeper
117126
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)