Migrating production infrastructure? Get up to ₹10,000 in migration credits. Apply now
voroaBlog
Web Services

GitHub Blocks pull_request_target by Default from 2 December

· · 3 min read

GitHub blocks pull_request_target by default in public repositories from 2 December 2026

From 2 December 2026, GitHub Actions blocks the pull_request_target trigger by default in public repositories. A workflow that relies on it will stop running unless an Actions event policy allows it.

If your repository is private, nothing changes. If it is public and you accept pull requests from forks, read on: this is the trigger behind many labelling bots, comment bots and “deploy a preview for this PR” workflows.

Advertisement

What GitHub announced

The GitHub changelog entry sets the rules:

  • Public repositories only. Private and internal repositories are not affected.
  • GitHub Free, Team and Enterprise Cloud. GitHub Enterprise Server is not part of this change.
  • Two brownouts already ran. GitHub enforced the block on 9 and 16 November (16:00-18:00 UTC). Until 2 December the rule is in evaluate mode: workflows still run, with warnings, and Actions Insights shows which runs would be blocked.
  • The date moved once. Enforcement was first planned for 2 November 2026 and was pushed to 2 December.

After the switch you have two choices: leave the block in place, or allow the trigger explicitly in an Actions event policy. The policy can name specific workflow files, so you can allow one trusted workflow and keep the rest blocked.

Diagram: pull_request_target from 2 December 2026 - public repositories blocked by default, private repositories unchanged, allow-list by workflow file

Why the trigger is dangerous

An ordinary pull_request workflow from a fork runs with a read-only token and no secrets. The _target trigger is different: it runs in the context of the base repository, with its secrets and a token that can have write access, depending on your repository settings. That was the point - a bot needs write access to add a label. It is also the risk. If the workflow checks out the fork’s code and runs it (an npm install, a test script, a build), a stranger’s pull request runs with your secrets.

GitHub has been closing this door in steps. In June 2026, actions/checkout started refusing fork checkouts inside pull_request_target workflows by default. The December change goes further and stops the trigger itself.

Find out in two minutes whether you use it

From the root of each public repository:

bash
grep -rn "pull_request_target" .github/workflows/

No output means no action - but also check any reusable workflows these call. For each hit, ask one question: does this workflow need write access or secrets?

  1. It only runs tests or a build. Switch it to pull_request. Fork runs get no secrets, which is what you want for code you have not reviewed.
  2. It labels, comments or assigns, without running fork code. This is the safe use. Allow that one workflow file in the event policy.
  3. It deploys a preview of the fork’s code with your cloud keys. Stop. That is the exact pattern the block exists for. Deploy previews only for branches pushed to your own repository, or behind a deployment environment that needs a maintainer’s approval.

Teams with interns, freelancers and agencies

Many Indian teams take contributions through forks even on client work: interns on a training cohort, a freelance designer fixing CSS, an agency that hands the repository back at the end. Those forks are the reason the trigger exists in your workflows at all. Before 2 December, check which of your public repositories still accept fork pull requests and whether that is deliberate. Moving client code to a private repository removes the question entirely - private repositories keep working as they do today.

How previews work on Voroa

On Voroa, pull request preview environments are built for pull requests from branches in the same repository, so Voroa never builds a fork’s code - and even a same-repository preview gets none of your service’s environment variables, only the preview variables you set for it. Previews need no GitHub workflow at all: Voroa receives the pull request event itself, as described in how auto-deploy works. A merge to your branch deploys the web service, and a bad deploy is one click to roll back.

If you are reviewing your CI setup anyway, our guide to deploying from GitHub in India covers the push-to-deploy flow end to end, and connecting GitHub takes a minute.

Advertisement