Skip to content

Commit

Permalink
Fix Sarif format of gosec output
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Sep 18, 2024
1 parent fd9d948 commit 2514f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
uses: securego/gosec@v2.21.3
with:
args: '-no-fail -fmt sarif -out results.sarif -tests ./...'
- name: Fix SARIF format
run: yq --inplace --output-format json 'del(.runs.[].results.[].fixes)' results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand All @@ -42,7 +44,6 @@ jobs:
- id: govulncheck
uses: golang/govulncheck-action@v1.0.3
with:
govulncheck-action: go.mod
output-format: sarif
output-file: results.sarif
- name: Fix SARIF format
Expand Down

0 comments on commit 2514f70

Please sign in to comment.