That's a great change by Github here. pull_request_target has been the source of numerous security incidents (see the examples listed in the blogpost), with little benefits to the user.
zizmor [0], a linter for GitHub Actions, flags it as part of its default audits. I would also recommend everyone to check the results of the default scan of zizmor on their project:
`pull_request_target` is being disabled by default on Dec 2:
> On December 2, 2026, GitHub will enforce the default policy for affected repositories that were using the default pull_request_target policy before general availability.
Thus dev teams can and will use this so a failed security scan won't stop deployment to prod.
[3 hidden]5 mins ago
I don’t disagree that `continue-on-error` is error-prone and should be warned about, but if the team actively wants to bypass the sec scan they can just… remove it, or replace it with an always-passing job/step.
[3 hidden]5 mins ago
I think that having the same infrastructure for running tests, building, signing and publishing is a big mistake.
It's also the thing that allowed frictionless automated build/test/deployment for many projects, and helped streamline CI.
Sure, there are limitations, but you can use different jobs, with restricted environments for the more sensitive tasks.
[3 hidden]5 mins ago
> It's also the thing that allowed frictionless automated build/test/deployment for many projects, and helped streamline CI.
I'm stating that allowing frictionless automated build/test/deployment was a mistake.
And PyPI pushing projects in that direction and forbidding PGP signatures was also a mistake.
edit: if they wanted to increase safety they should have pushed for reproducible builds, do their own build and validate that it's the same, rather than allowing binary uploads like they do.
zizmor [0], a linter for GitHub Actions, flags it as part of its default audits. I would also recommend everyone to check the results of the default scan of zizmor on their project:
```
cd <my-project>
uvx zizmor .
```
[0] https://zizmor.sh/
> On December 2, 2026, GitHub will enforce the default policy for affected repositories that were using the default pull_request_target policy before general availability.
https://docs.github.com/en/actions/reference/security/secure...
continue-on-error
> failure doesn't fail the whole workflow
Thus dev teams can and will use this so a failed security scan won't stop deployment to prod.
It causes daily hacks. Like this from last week. https://www.theregister.com/security/2026/11/18/microsofts-o...
Sure, there are limitations, but you can use different jobs, with restricted environments for the more sensitive tasks.
I'm stating that allowing frictionless automated build/test/deployment was a mistake.
And PyPI pushing projects in that direction and forbidding PGP signatures was also a mistake.
edit: if they wanted to increase safety they should have pushed for reproducible builds, do their own build and validate that it's the same, rather than allowing binary uploads like they do.