cacti
cacti copied to clipboard
ci(dependent-issues): fix fork PR token permissions
Fork PRs get a read-only GITHUB_TOKEN since Feb 2023, so the Dependent Issues workflow fails on every external contributor PR with Resource not accessible by integration.
Fix: switch pull_request → pull_request_target (runs in base repo's token context so fork PRs get write scope) and add an explicit least-privilege permissions: block.
Safety: the action only reads PR metadata via the API — it never checks out PR head code, so the usual pull_request_target RCE risk does not apply.
Checklist
- [x] Rebased on
upstream/main, single commit - [x] DCO sign-off
- [x] Conventional Commits, title ≤ 72 chars, body ≤ 80 chars/line
- [x] YAML validated locally