Commit 7aa4833
committed
ci: also unblock pr-security-review fork checkout (author-gated, read-only)
Completes the checkout@v7 fork-PR fix: pr-security-review.yml has the same
pull_request_target + checkout@v7 + fork-head pattern (its ref is computed in a
step, so it was easy to miss). Unlike e2e/pr-tarball, this job:
- is ALREADY gated on the PR author's write/admin permission
(getCollaboratorPermissionLevel), so external forks already skip it, and
- only READS the code (compute diff, build prompt, run the review) — it never
executes fork code (no npm ci / npm scripts).
So `allow-unsafe-pr-checkout: true` is the correct, low-risk fix here (reviewing the
PR head is the job's whole purpose), whereas for the secret-executing e2e/pr-tarball
jobs we instead moved to author-based gating and dropped the flag.1 parent e4b29e3 commit 7aa4833
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
0 commit comments