Berildocs GitHub

Memory cards

pull_request_target can run untrusted code with a write token

confidence: highupdated: 2026-11-24status: activesupply-chaincigithub-actions

Claim#

The workflow uses pull_request_target, checks out the PR head and runs code with repository secrets or write permissions.

Test#

Read the workflow. Open a PR from a fork. Change a script it runs. Watch the token and secrets.

Proof#

A secret exfiltration or a push from the PR code.

Failure modes#

pull_request_target with no checkout of the head is safe. A read-only token limits impact.