Skip to content

Commit 9163fbf

Browse files
authored
fork friendly checkmarx (#61)
* feat: point to fork friendly action. Caution: uses pull_request_target. * fix: point to updated action: include upload of results. * feat: less code now action is public
1 parent 44ccaae commit 9163fbf

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/checkmarx.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,11 @@ jobs:
2929
# CRITICAL: DO NOT CHECKOUT THE PR CODE
3030
# This is what makes it safe with pull_request_target
3131

32-
# TODO: Remove this checkout step once upload-sarif-github-action repo is made public
33-
# Currently required because GitHub Actions can't directly reference private repos
34-
- name: Checkout Upload action repository
35-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
32+
- name: Checkmarx Full Scan
33+
uses: midnightntwrk/upload-sarif-github-action/checkmarx-scan-public@53cdf3148dbbd85518ecc5e8f1ec485852c99c36
3634
with:
37-
repository: midnightntwrk/upload-sarif-github-action
38-
ref: main
39-
path: upload-sarif-github-action
40-
token: ${{ secrets.MIDNIGHTCI_REPO }}
41-
42-
# Once public and merged, can simplify to:
43-
# uses: midnightntwrk/upload-sarif-github-action/checkmarx-scan-public@main
44-
- name: Checkmarx Full Scan (Fork-Friendly)
45-
uses: ./upload-sarif-github-action/checkmarx-scan-public
46-
with:
47-
project-name: midnightntwrk/midnight-node-docker
4835
cx-client-id: ${{ secrets.CX_CLIENT_ID }}
4936
cx-client-secret: ${{ secrets.CX_CLIENT_SECRET_EU }}
5037
cx-tenant: ${{ secrets.CX_TENANT }}
51-
# repo-url and branch are auto-detected from PR context
38+
scs-repo-token: ${{ secrets.MIDNIGHTCI_REPO }}
5239
upload-to-github: 'true'

0 commit comments

Comments
 (0)