|
72 | 72 | uses: actions/checkout@v7 |
73 | 73 | with: |
74 | 74 | ref: ${{ env.HEAD_SHA }} |
| 75 | + # Required since actions/checkout began refusing fork PR code in |
| 76 | + # workflow_run jobs. Safe here: fork PRs from all external |
| 77 | + # contributors require maintainer approval before this trusted, |
| 78 | + # secret-holding run can execute (repo Actions setting). |
| 79 | + # See https://gh.io/securely-using-pull_request_target |
| 80 | + allow-unsafe-pr-checkout: true |
75 | 81 | # Optional: get full history if needed |
76 | 82 | fetch-depth: 0 |
77 | 83 |
|
@@ -183,6 +189,9 @@ jobs: |
183 | 189 | uses: actions/checkout@v7 |
184 | 190 | with: |
185 | 191 | ref: ${{ env.HEAD_SHA }} |
| 192 | + # See the checkout step in the `test` job for why this is set |
| 193 | + # and why it is safe (external-contributor approval gate). |
| 194 | + allow-unsafe-pr-checkout: true |
186 | 195 | fetch-depth: 0 |
187 | 196 |
|
188 | 197 | - name: Setup |
@@ -290,6 +299,12 @@ jobs: |
290 | 299 | uses: actions/checkout@v7 |
291 | 300 | with: |
292 | 301 | ref: ${{ env.HEAD_SHA }} |
| 302 | + # Required since actions/checkout began refusing fork PR code in |
| 303 | + # workflow_run jobs. Safe here: fork PRs from all external |
| 304 | + # contributors require maintainer approval before this trusted, |
| 305 | + # secret-holding run can execute (repo Actions setting). |
| 306 | + # See https://gh.io/securely-using-pull_request_target |
| 307 | + allow-unsafe-pr-checkout: true |
293 | 308 | # Optional: get full history if needed |
294 | 309 | fetch-depth: 0 |
295 | 310 |
|
@@ -369,6 +384,9 @@ jobs: |
369 | 384 | uses: actions/checkout@v7 |
370 | 385 | with: |
371 | 386 | ref: ${{ env.HEAD_SHA }} |
| 387 | + # See the checkout step in the `test` job for why this is set |
| 388 | + # and why it is safe (external-contributor approval gate). |
| 389 | + allow-unsafe-pr-checkout: true |
372 | 390 | fetch-depth: 0 |
373 | 391 |
|
374 | 392 | - name: Setup |
@@ -446,6 +464,12 @@ jobs: |
446 | 464 | uses: actions/checkout@v7 |
447 | 465 | with: |
448 | 466 | ref: ${{ env.HEAD_SHA }} |
| 467 | + # Required since actions/checkout began refusing fork PR code in |
| 468 | + # workflow_run jobs. Safe here: fork PRs from all external |
| 469 | + # contributors require maintainer approval before this trusted, |
| 470 | + # secret-holding run can execute (repo Actions setting). |
| 471 | + # See https://gh.io/securely-using-pull_request_target |
| 472 | + allow-unsafe-pr-checkout: true |
449 | 473 | # Optional: get full history if needed |
450 | 474 | fetch-depth: 0 |
451 | 475 |
|
|
0 commit comments