Skip to content

Commit c865fb7

Browse files
committed
ci: Fix checkout failure in pull_request_target workflows
actions/checkout v4.4.0 (released 2026-07-20) backported a security check that blocks checking out fork PR code in pull_request_target workflows by default. This broke pr-integration-tests and pr-registration-integration-tests for all fork PRs. Add allow-unsafe-pr-checkout: true to the 4 affected checkout steps. This is safe because both workflows already gate execution behind maintainer-applied labels (ok-to-test / approved / lgtm) and set persist-credentials: false. Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 294efad commit c865fb7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pr_integration_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
ref: refs/pull/${{ github.event.pull_request.number }}/merge
5050
submodules: recursive
5151
persist-credentials: false
52+
allow-unsafe-pr-checkout: true # Security: gated by label check above
5253
- name: Setup Python
5354
uses: actions/setup-python@v5
5455
id: setup-python
@@ -108,6 +109,7 @@ jobs:
108109
ref: refs/pull/${{ github.event.pull_request.number }}/merge
109110
submodules: recursive
110111
persist-credentials: false
112+
allow-unsafe-pr-checkout: true # Security: gated by label check above
111113
- name: Setup Python
112114
uses: actions/setup-python@v5
113115
with:

.github/workflows/pr_registration_integration_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
ref: refs/pull/${{ github.event.pull_request.number }}/merge
2828
submodules: recursive
2929
persist-credentials: false
30+
allow-unsafe-pr-checkout: true # Security: gated by label check above
3031
- name: Setup pixi
3132
uses: prefix-dev/setup-pixi@v0.8.1
3233
with:
@@ -58,6 +59,7 @@ jobs:
5859
ref: refs/pull/${{ github.event.pull_request.number }}/merge
5960
submodules: recursive
6061
persist-credentials: false
62+
allow-unsafe-pr-checkout: true # Security: gated by label check above
6163
- name: Authenticate to Google Cloud
6264
uses: 'google-github-actions/auth@v2'
6365
with:

0 commit comments

Comments
 (0)