Skip to content

Commit eedf511

Browse files
authored
fix: accept-forks (#49)
* fix: accept-forks * debug: show generated sarif file
1 parent 15971c8 commit eedf511

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/checkmarx.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Check access
38-
if: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' }}
38+
if: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'MEMBER' }}
3939
run: |
4040
echo "This job needs re-running by someone with collaboration permissions."
4141
exit 1
@@ -109,6 +109,11 @@ jobs:
109109
mv ./cx_result.sarif ./cx_result.sarif.orig
110110
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
111111
112+
- uses: actions/upload-artifact@v4
113+
with:
114+
name: cx_result-sarif
115+
path: cx_result.sarif
116+
112117
# Upload results to github
113118
- name: Upload SARIF file
114119
uses: github/codeql-action/upload-sarif@7273f08caa1dcf2c2837f362f1982de0ab4dc344 # v3.29.2

0 commit comments

Comments
 (0)