Effective December 2, 2026 GitHub Actions will block pull_request_target workflows in public repositories unless a specific GitHub Actions event policy grants an exception. The shift matters because those workflows execute in the base repository’s context and can read its secrets, so untrusted code from a fork could expose credentials or compromise the build pipeline.
What Changed in pull_request_target Enforcement
GitHub now applies a default deny stance to pull_request_target events for public repositories on GitHub Free, Team, and Enterprise Cloud. Private and internal repositories remain unaffected. Existing repositories that already have an applicable event policy continue to operate under that policy; only those without such a policy will see the workflow blocked.
Why It Matters to Engineers and Security Teams
Workflows triggered by pull_request_target inherit the base repository’s permissions, including access to secret variables and privileged tokens. When a fork submits a pull request, the code runs with those elevated rights, creating a direct path for secret leakage or pipeline tampering. Engineers responsible for CI/CD pipelines must therefore ensure that any code executed with these privileges is trusted, and security practitioners need to treat the default block as a mitigation against accidental exposure.
Practical Implications and Next Steps
- Audit existing workflows that use
pull_request_targetand determine whether they truly need base‑repo context. - Where possible, replace
pull_request_targetwith the saferpull_requestevent, which runs in the fork’s context and does not expose repository secrets. - If a workflow must retain
pull_request_target, create or update an event policy that explicitly allows the workflow file. Scope the policy to the minimal set of files required. - Validate that the allowed workflow does not execute untrusted code that could reach secrets or privileged tokens before enabling the policy.
- Use Policy Insights to monitor blocked workflow attempts and to verify that the new policies behave as intended.
Related CloudNinjas coverage: DevOps.
What This Means For Practitioners
Treat the default block as a prompt to tighten CI/CD boundaries: move fork‑originated builds to pull_request whenever feasible, and only whitelist pull_request_target after a focused risk assessment. Continuously review Policy Insights for blocked runs and adjust event policies to keep the pipeline both functional and secure.
