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.
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.
- GitHub Changelog · pull_request_target enforcement begins December 2
- GitHub Docs · Securely using pull_request_target
- GitHub Docs · Governing execution of GitHub Actions workflows
- GitHub Agentic Workflows · Pull Request Target Triggers
- R. R. Gawand and Ritesh Ovhal · Explanation workflow, Figure 2, page 2 · IJREK · CC BY 4.0
- Creative Commons · Attribution 4.0 International



