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 authored Sep 18, 2024
1 parent fd9d948 commit 226630a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
uses: securego/[email protected]
with:
args: '-no-fail -fmt sarif -out results.sarif -tests ./...'
- name: Fix SARIF format
run: yq --inplace --output-format json '.runs |= map ({"results":[]} + .)' results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down

0 comments on commit 226630a

Please sign in to comment.