GitHub announced changes to the GitHub Actions security rules. Starting December 2, 2026, the platform will by default block the execution of automation scripts on the pull_request_target event in public repositories. To save such scenarios, you will need to explicitly allow the event in your GitHub Actions policy settings.

Initially, the restriction was planned to be introduced on November 2, but the deadline was postponed by a month.

Why GitHub is introducing a restriction

The pull_request_target event allows you to trigger automation when working with pull requests, including those coming from forks. For example, it is used to automatically assign tags or add comments.

The problem is that such scripts run in the context of the main repository and can access its secrets. If the script then runs untested code from a third-party fork, an attacker could potentially steal secrets or compromise the CI/CD process.

The new policy should reduce the risk of such attacks. At the same time, GitHub leaves the opportunity to use pull_request_target where you really can’t do without it.

How will the transition take place?

Now the constraint works in evaluation mode (evaluate). Scripts continue to run, but administrators can now see which ones will be blocked once the new rules take effect.

Before the protection is finally enabled, GitHub will implement two temporary blocks:

  • November 9, 2026 - from 16:00 to 18:00 UTC (19:00–21:00 Moscow time).

  • November 16, 2026 - from 16:00 to 18:00 UTC (19:00–21:00 Moscow time).

During these periods, scripts that are subject to the restriction will not be executed. Instead, GitHub will create a failed launch entry with an error message.

After each such period, the system will return to evaluation mode. From December 2, the blocking will become permanent.

What developers need to check

If your public repository uses pull_request_target, you should check the Policy insights section in your GitHub Actions settings before November 9th. There you can see which scenarios the new policy will affect.

There are then three possible options:

  • If pull_request_target is not needed, replace it with a safer event such as pull_request where possible.

  • If you cannot do without it, explicitly allow the event through the GitHub Actions policy. If necessary, permission can be limited to specific script files.

  • If the event is not to be used, leave the default blocking.

However, the pull_request_target resolution itself does not eliminate the risks associated with it. GitHub recommends not executing untested code from third-party pull requests with access to repository secrets or privileged GITHUB_TOKEN.

The change applies to all public repositories on GitHub Free, GitHub Team and GitHub Enterprise Cloud plans. It will not affect private and internal repositories. The new rule also does not apply to GitHub Enterprise Server.

For more information about setting restrictions, see the GitHub documentation.

All free webinars from IT experts are already available on the Otus calendar.