When Actions secrets are available to a workflow run

Verdict: A workflow triggered from a fork receives only GITHUB_TOKEN; all other secrets are withheld. Dependabot-triggered runs get no Actions secrets at all. Same-repository runs get full secret access. Secrets also cannot be referenced directly in if: conditionals.

CriterionFork pull_request runDependabot-triggered runSame-repository run
Secrets availableOnly GITHUB_TOKEN; all other secrets withheldNo repository or organization Actions secretsFull repository, environment and organization secrets
WhyPrevent an external contributor exfiltrating credentialsLimit the blast radius of a malicious dependency updateTrusted context

Rules

Traps