Skip to content

Commit dd53780

Browse files
thepastaclawclaude
andcommitted
fix(ci): allow checkout v6 for PR heads
Explicitly allow the 11 pull_request_target checkout steps that intentionally check out fork head SHAs under checkout v6.1. Disable credential persistence for the same untrusted working trees while preserving the existing runner, cache, container, permission, and Guix behavior. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6493af2 commit dd53780

7 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎.github/workflows/build-container.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
uses: actions/checkout@v6
4242
with:
4343
ref: ${{ github.event.pull_request.head.sha }}
44+
allow-unsafe-pr-checkout: true
45+
persist-credentials: false
4446

4547
- name: Prepare variables
4648
id: prepare
@@ -85,6 +87,8 @@ jobs:
8587
uses: actions/checkout@v6
8688
with:
8789
ref: ${{ github.event.pull_request.head.sha }}
90+
allow-unsafe-pr-checkout: true
91+
persist-credentials: false
8892

8993
- name: Prepare variables
9094
id: prepare
@@ -128,6 +132,8 @@ jobs:
128132
uses: actions/checkout@v6
129133
with:
130134
ref: ${{ github.event.pull_request.head.sha }}
135+
allow-unsafe-pr-checkout: true
136+
persist-credentials: false
131137

132138
- name: Set up Docker Buildx
133139
uses: docker/setup-buildx-action@v4

‎.github/workflows/build-depends.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
uses: actions/checkout@v6
5353
with:
5454
ref: ${{ github.event.pull_request.head.sha }}
55+
allow-unsafe-pr-checkout: true
56+
persist-credentials: false
5557
sparse-checkout: |
5658
ci/dash
5759
ci/test
@@ -134,6 +136,8 @@ jobs:
134136
uses: actions/checkout@v6
135137
with:
136138
ref: ${{ github.event.pull_request.head.sha }}
139+
allow-unsafe-pr-checkout: true
140+
persist-credentials: false
137141

138142
- name: Restore depends sources
139143
uses: actions/cache/restore@v5

‎.github/workflows/build-src.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
uses: actions/checkout@v6
5858
with:
5959
ref: ${{ github.event.pull_request.head.sha }}
60+
allow-unsafe-pr-checkout: true
61+
persist-credentials: false
6062
fetch-depth: 50
6163

6264
- name: Initial setup

‎.github/workflows/cache-depends-sources.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
uses: actions/checkout@v6
2424
with:
2525
ref: ${{ github.event.pull_request.head.sha }}
26+
allow-unsafe-pr-checkout: true
27+
persist-credentials: false
2628

2729
- name: Check for cached sources
2830
id: cache-check

‎.github/workflows/guix-build.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
uses: actions/checkout@v6
2929
with:
3030
ref: ${{ github.event.pull_request.head.sha }}
31+
allow-unsafe-pr-checkout: true
32+
persist-credentials: false
3133
path: dash
3234
fetch-depth: 0
3335

@@ -87,6 +89,8 @@ jobs:
8789
uses: actions/checkout@v6
8890
with:
8991
ref: ${{ github.event.pull_request.head.sha }}
92+
allow-unsafe-pr-checkout: true
93+
persist-credentials: false
9094
path: dash
9195
fetch-depth: 0
9296

‎.github/workflows/lint.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
uses: actions/checkout@v6
2525
with:
2626
ref: ${{ github.event.pull_request.head.sha }}
27+
allow-unsafe-pr-checkout: true
28+
persist-credentials: false
2729
fetch-depth: 50
2830

2931
- name: Initial setup

‎.github/workflows/test-src.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: actions/checkout@v6
3737
with:
3838
ref: ${{ github.event.pull_request.head.sha }}
39+
allow-unsafe-pr-checkout: true
40+
persist-credentials: false
3941
fetch-depth: 1
4042

4143
- name: Download build artifacts

0 commit comments

Comments
 (0)