Actively exploited Attackers exploit Acronis Backup plugin for cPanel; users of version 1.9.4 are told to downgrade CVSS 7.5 · Published Dec 4, 05:40 UTC What to do now ›

TechNews

GitHub Actions now blocks pull_request_target workflows by default in public repositories

Since Dec 2, GitHub Actions blocks workflows triggered by pull_request_target in public repositories that have no event policy allowing them. The trigger gives code from forks a route to a repository's secrets.

News graphic with the label 'Developer security', the title 'pull_request_target' and the line 'GitHub Actions: blocked by default from Dec 2', above an illustration of a pull request arrow from a forked branch stopped by a barrier in front of a locked box of secrets
Illustration: AI Security Times

GitHub Actions has started blocking workflows triggered by pull_request_target in public repositories by default. “Starting Wednesday, December 2, 2026, GitHub Actions will block pull_request_target workflows by default in affected public repositories unless an applicable GitHub Actions event policy explicitly allows them,” GitHub said in its changelog on Dec 2.

GitHub announced the date on Nov 2. Enforcement had first been planned for that day; GitHub moved it to Dec 2 and scheduled two temporary enforcement windows, or “brownouts”, in between so maintainers could find affected workflows.

Why the trigger is risky

Most pull request workflows run with limited rights when the pull request comes from a fork. pull_request_target is different: it runs in the context of the base repository. “pull_request_target runs in the context of the base repository and can access its secrets,” GitHub explains. “If a workflow executes untrusted code from a fork, that code could compromise your pipeline or steal secrets.”

Workflows that check out and build a fork’s code under this trigger are a well-known way into open-source build pipelines, because anyone can open a pull request against a public repository.

Who is affected

The default rule applies to public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud. It does not apply to private or internal repositories, or to GitHub Enterprise Server. If a repository already has an applicable Actions event policy, that policy still applies and the default rule does not replace it.

Blocked runs fail with an error annotation, and the workflow does not execute.

What maintainers should do

  • Check for blocked runs. GitHub’s policy insights show which workflow runs the rule blocks.
  • Switch to a safer trigger where you can. For most checks on fork pull requests, the plain pull_request event is enough.
  • Allow the trigger only where it is needed. If a workflow really needs pull_request_target, create or update an Actions event policy that allows it. The policy can be limited to specific workflow files.

GitHub’s documentation sets the bar for allowing it: “Workflows triggered by this event should not check out, build, or run code from an untrusted pull request with access to repository secrets or a privileged GITHUB_TOKEN.”

Sources

  1. GitHub changelog: pull_request_target enforcement begins December 2 (Dec 2, 2026)GitHub
  2. GitHub changelog: pull_request_target blocked by default December 2 (Nov 2, 2026)GitHub
  3. GitHub Docs: Securely using pull_request_targetGitHub
  4. GitHub Docs: Governing execution of GitHub Actions workflowsGitHub

AI Security Times

Newsroom

Stories signed AI Security Times are researched and drafted with AI assistance, checked against their primary sources and approved by our editor before they are published. Every news story and analysis lists its sources at the end. Read how we use AI and our editorial standards.

More from AI Security Times ›

Spotted a mistake? Report an error

Related coverage

More in Tech ›