Skip to content

Commit cf660bf

Browse files
authored
feat: fix rather than filter sec issues (#32)
* feat: don't filter * fix: needs to be file protocol * fix: it's a uri not a url * refactor: inline
1 parent 66a8c5f commit cf660bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/checkmarx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Filter out repo level issues that github can't handle
9090
run: |
9191
mv ./cx_result.sarif ./cx_result.sarif.orig
92-
jq '. | .runs[0].results |= map(select(.locations[0].physicalLocation.artifactLocation.uri != ""))' cx_result.sarif.orig > cx_result.sarif
92+
jq '.runs |= map(.results |= map(.locations |= map(if .physicalLocation.artifactLocation.uri == "" then .physicalLocation.artifactLocation.uri = "file:/README.md" else . end)))' cx_result.sarif.orig > cx_result.sarif
9393
9494
# Upload results to github
9595
- name: Upload SARIF file

0 commit comments

Comments
 (0)