Do workflows run for pull requests from forks, and what restrictions apply?
IntermediateConceptTriggers & Events
Answer
Yes, pull_request workflows run for fork PRs, but: secrets are empty (except GITHUB_TOKEN), GITHUB_TOKEN is read-only, OIDC tokens are not issued with write access by default, and first-time contributors (configurable: new to GitHub, or all outside collaborators) need a maintainer to click "Approve and run". Dependabot PRs are treated similarly: they use Dependabot secrets instead of Actions secrets and a read-only token.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner