All stories
Development

GitHub restricts one kind of automated check in public repositories

The rule covers the pull_request_target event from December 2; private and internal repositories are unaffected.

In an affected public repository, pull_request_target is blocked by default without a policy allowing it. An explicit allowance does not override other policies.

What changed

GitHub says that from December 2, GitHub Actions blocks pull_request_target runs in affected public repositories unless an applicable event policy explicitly allows them. An automated check of proposed changes may therefore fail to start.

The change applies to affected public projects on GitHub Free, Team and Enterprise Cloud. Private and internal repositories are excluded; an existing applicable event policy still applies.

As checked on December 3, GitHub’s security guide still describes an evaluation mode in which runs are not blocked. Its December 2 changelog says enforcement starts on that date; Astra News has not tested an individual repository.

When an AI assistant is affected

GitHub Actions runs automated workflows, such as code checks after a pull request proposes changes to a repository. Those workflows can include AI agents. GitHub Agentic Workflows documentation separately describes triggering an agent with pull_request_target.

For example, a public project might configure a bot to analyze outside contributions with that event and have no policy explicitly allowing it. If the new rule applies to the project, the run will be blocked. This is an illustrative example, not a report that a particular bot failed.

What a project owner can check

GitHub recommends checking Policy insights. A repository administrator or organization owner can find it under Settings → Actions → Policies, where blocked runs are shown. If the event is unnecessary, GitHub suggests considering pull_request, while accounting for differences in permissions and workflow behavior.

If pull_request_target is necessary, a policy can explicitly allow it for selected workflow files. Before doing so, GitHub recommends checking that the workflow does not execute untrusted pull request code with access to secrets or a privileged token.

The event itself takes its workflow configuration from the base repository and does not execute fork code by default. One risk arises if the workflow separately obtains and runs that code with elevated privileges. Even without running fork code, check how untrusted input is handled and restrict access to secrets and token permissions. This is not a complete security audit; other restrictions still apply.

Primary sources

The diagram shows two cases for pull_request_target in an affected public repository. Adapted from Figure 2 by R. R. Gawand and Ritesh Ovhal, CC BY 4.0: content and labels changed. R. R. Gawand and Ritesh Ovhal / Astra News adaptation · CC BY 4.0 · CC BY 4.0 · Web adaptation, WebP.

Read next

King Charles III speaks with a guest at a Buckingham Palace reception in 2023.
AI

King Charles gathers contributors to new AI principles

The Ditchley Foundation has published ten principles, including an appeal to a human over consequential decisions. They do not establish a regulatory system.

Jensen Huang speaks into a microphone at an NVIDIA GTC panel in Washington on December 2, 2026.
Technology

NVIDIA CEO Huang explains shipping restriction on Megaspeed

At the Senate hearing, NVIDIA’s chief disputed a senator’s timeline. Archive photo: Huang at an NVIDIA GTC panel in Washington on December 2, 2026.

Jeff Dean wears headphones in a file photo.
AI

Jeff Dean’s Discovery Loop raises $1.2 billion

Its founder reports more than 5,000 internal AI-agent loops but does not explain how their results were evaluated.

All stories