Live
Consolidating State Health Agency Workflows with Gemini Agent SkillsAI agent database load: patterns, pitfalls, and ScyllaDB mitigationsAI agents for healthcare: deployment patterns and operational impact for cloud and DevOps teamsDesigning an Agent‑Ready Platform: Webflow’s Blueprint for Safe AI‑Generated CodeSelf‑service scaling to 5,000 GKE nodes in under five minutesStable Kubernetes Foundations Power AI Agent Workloads on Amazon EKSObject‑Level RBAC in Basin Catalog: Granular Permissions for EngineersEvidence‑Driven Trustworthy AI Models: What Engineers Need to Adjust TodayConsolidating State Health Agency Workflows with Gemini Agent SkillsAI agent database load: patterns, pitfalls, and ScyllaDB mitigationsAI agents for healthcare: deployment patterns and operational impact for cloud and DevOps teamsDesigning an Agent‑Ready Platform: Webflow’s Blueprint for Safe AI‑Generated CodeSelf‑service scaling to 5,000 GKE nodes in under five minutesStable Kubernetes Foundations Power AI Agent Workloads on Amazon EKSObject‑Level RBAC in Basin Catalog: Granular Permissions for EngineersEvidence‑Driven Trustworthy AI Models: What Engineers Need to Adjust Today
GitHub

GitHub Actions now blocks pull_request_target in public repos by default

AI SummaryPowered by AI

Starting December 2, 2026 GitHub Actions will automatically prevent pullrequesttarget workflows from running in affected public repositories unless an explicit event policy permits them. This change forces engineers and security teams to reassess CI/CD designs that rely on fork‑originated code accessing repository secrets.

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_target and determine whether they truly need base‑repo context.
  • Where possible, replace pull_request_target with the safer pull_request event, 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.

Originally published atGitHub Changelog