Skip to content

Commit

Permalink
SARIF location uri fields should not be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoster authored and git committed May 16, 2024
1 parent d45f35c commit dfeaf43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
format: sarif
output: trivy-results.sarif

- name: Fix SARIF file uri files
run: |
jq '.runs | map(.results | map(.locations
| map(.physicalLocaion.artifactLocation.uri = "file:///sbom.spdx.json")))' \
trivy-results.sarif > tmp.sarif
mv tmp.sarif trivy-results.sarif
- uses: actions/upload-artifact@v4
with:
name: sbom
Expand Down

0 comments on commit dfeaf43

Please sign in to comment.