Interview Prep/GitHub Actions/Triggers & Events

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events