# GitHub blocks a way to run tasks with extra permissions by default in affected public code projects

On 2 December 2026, GitHub began enforcing the default rule in public code projects on GitHub Free, GitHub Team, and GitHub Enterprise Cloud that were already using it before it became generally available. Automated tasks that use the pull\_request\_target trigger to respond to proposed code changes now need a rule that explicitly allows it.

Published 3 December 2026 · Verified as of 3 December 2026 · AveNews · Software

https://www.avenews.am/en/posts/github-actions-workflow-block-enforcement · [Հայերեն](https://www.avenews.am/hy/posts/github-actions-workflow-block-enforcement)

> **Summary:** GitHub now blocks by default a trigger that lets automated tasks in affected public code projects respond to proposed changes with access to private credentials, unless an applicable rule explicitly allows it. GitHub recommends a more limited trigger for testing outside contributions when those credentials aren’t needed.

Sole source: GitHub. GitHub began enforcing the default block on 2 December 2026, the company said in its [changelog](https://blog.github.com/changelog/2026-12-02-github-actions-will-block-pull-request-target-by-default-in-affected-public-repo). GitHub Actions, its service for running automated tasks, now stops affected tasks triggered by pull\_request\_target unless a rule for that project explicitly allows the trigger. A pull request is a proposal to change a project’s code, and the trigger tells the service when to start a task in response.[^1]

Before enforcement, the default rule was in evaluation mode: tasks still ran, but maintainers could see which ones the rule would stop in a dashboard called Policy insights. The switch covers affected public code projects on GitHub Free, GitHub Team, and GitHub Enterprise Cloud that were already using the default rule before it became generally available. It does not apply to private or internal projects, and any existing rule that applies to a project stays in effect.[^1][^2]

## Why GitHub changed the default

GitHub says the rule is meant to protect projects from untrusted code. By default, pull\_request\_target runs instructions from the original project’s main line of development without running code from a fork, a separate copy of the project. The task can access secrets, such as private credentials. GitHub says that if the task runs untrusted code from a fork with those credentials or with a token that gives it extra permissions, the code could expose the secrets or compromise the process that builds the software.[^1][^2]

## What project maintainers can do

GitHub advises maintainers to check Policy insights for blocked runs and switch to the pull\_request trigger where possible. For changes proposed from a fork, that trigger is safer for testing: the task gets a read-only access token and cannot access other secrets.[^1][^2]

GitHub says some tasks may still need the original project’s permissions, such as adding labels, sorting incoming requests, or posting status checks that require credentials. If a task still needs pull\_request\_target, maintainers can create or update a rule that explicitly allows it, limiting the allowance to specific files that define the tasks. GitHub advises doing so only after checking that the task won’t run untrusted code from a proposed change with access to secrets or a token that grants extra permissions.[^2][^1]

## References

- [GitHub](https://www.avenews.am/en/references/github-q28771536): The code-hosting company is enforcing a default rule that blocks some automated tasks in public projects.
- [GitHub Actions](https://www.avenews.am/en/references/github-actions-q97185096): GitHub’s automation service blocks tasks that use a specific trigger in affected public code projects unless a rule explicitly allows it.

## Sources

[^1]: [pull\_request\_target enforcement begins December 2](https://blog.github.com/changelog/2026-12-02-github-actions-will-block-pull-request-target-by-default-in-affected-public-repo), GitHub Changelog, 2 December 2026
[^2]: [Securely using pull\_request\_target - GitHub Docs](https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target), docs.github.com
