Skip to content

Commit ca194d6

Browse files
committed
fix: allow rerun on forked PRs
1 parent f1ca4bf commit ca194d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/checkmarx.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99

1010
on:
1111
pull_request_target:
12-
types: [opened, synchronize]
12+
types: [opened, synchronize, reopened]
1313
push:
1414
branches: [ 'main' ]
1515
concurrency:
@@ -27,6 +27,7 @@ jobs:
2727

2828
steps:
2929
# From https://michaelheap.com/access-secrets-from-forks/
30+
# Also see https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
3031
- name: Get User Permission
3132
id: checkAccess
3233
uses: actions-cool/check-user-permission@v2
@@ -46,6 +47,8 @@ jobs:
4647
# This is dangerous without the first access check
4748
- name: Checkout
4849
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
50+
with:
51+
ref: ${{ github.event.pull_request.head.sha }}
4952

5053
- name: Install dependencies
5154
run: |

0 commit comments

Comments
 (0)