Dashboardclipr-risk apply-label fork 403

pr-risk apply-label fork 403

Category: gotcha
Confidence: 1.00
ID: 01a086f2-9bce-7d53-8d55-21e09316fe93
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0iRbOD1VHj1PKYbvU
Created: 2026-09-09 16:14:01
Updated: 2026-09-09 16:14:01

Content

Trap: apply-label: "true" looks valid because pr-risk.yml grants issues: write, but fork pull_request tokens remain read-only and label PATCHes fail with GitHub 403 after scoring succeeds. Fix: set apply-label to ${{ github.event.pull_request.head.repo.full_name == github.repository }} so forks still produce scores/artifacts while same-repository PRs retain labels. Reject privileged execution of fork code because it exposes write credentials to untrusted changes.

Move to: