Skip to content

Commit dfeaf43

Browse files
rkostergit
authored and
git
committed
SARIF location uri fields should not be empty
microsoft/sarif-sdk#2770
1 parent d45f35c commit dfeaf43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: .github/workflows/sbom.yml

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
format: sarif
2929
output: trivy-results.sarif
3030

31+
- name: Fix SARIF file uri files
32+
run: |
33+
jq '.runs | map(.results | map(.locations
34+
| map(.physicalLocaion.artifactLocation.uri = "file:///sbom.spdx.json")))' \
35+
trivy-results.sarif > tmp.sarif
36+
mv tmp.sarif trivy-results.sarif
37+
3138
- uses: actions/upload-artifact@v4
3239
with:
3340
name: sbom

0 commit comments

Comments
 (0)