r/github • u/Minute-Age9938 • 1d ago
News / Announcements pull_request_target gets blocked on public repos December 2
GitHub is turning off pull_request_target by default for public repositories on December 2. A pull_request from a fork stays read only and has no secrets. pull_request_target runs in the base repository, with a write token and the repository secrets. That is the right trigger for labeling. It is the wrong one if the job checks out the pull request head and runs it, because anyone with a GitHub account can open that pull request. Brownouts already ran on November 9 and November 16. Until December 2 the block is in evaluate mode, so Insights shows which workflows it would stop. Team and Enterprise can set one org policy. Free is one repository at a time. If you maintain a public repo, are you deleting the trigger, or writing an Actions policy that allows it only for the workflows that never check out the head? https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/
9
u/Fine_League311 1d ago
Allow pr only for trusted collaborations and you have no problems
11
u/TomKavees 1d ago
Good. It was a giant security footgun that enabled several supply chain attacks.
1
u/SheriffRoscoe 1d ago
BFT.