A GitHub Actions Trust Boundary Audit: Fork PRs, npm Scripts, and GITHUB_TOKEN Scope
A privileged workflow becomes dangerous when it checks out contributor-controlled code and executes it. This defensive walkthrough shows the unsafe pairing, explains the npm lifecycle boundary, and keeps fork PR tests running with explicit read permissions and no persisted checkout credentials. Keep privileged metadata jobs separate, and check repository settings that can grant fork PR workflows write tokens. Audit which credentials are live when contributor code runs, not just which event starts the workflow. All code shown is illustrative lab material, not a reconstruction of any organization's configuration. Action revisions and fork commit references are unresolved placeholders. Full write-up: https://hackyjs.com/posts/a-github-actions-trust-boundary-audit-fork-prs-npm-scripts-and-github-token-scope