Starting December 2, GitHub will block pull_request_target workflows by default ...

@feross@infosec.exchange

Starting December 2, GitHub will block pull_request_target workflows by default in public repositories.

The trigger runs workflows for pull requests from forks with the base repository's secrets and token permissions. Researchers have warned about "pwn requests" since at least 2021, and the pattern has been tied to real supply chain incidents. In June, GitHub made actions/checkout reject unsafe fork checkouts. This goes further. The trigger itself won't fire unless an Actions event policy allows it.

That will break some workflows that use it safely, like ones that only label pull requests. I think that's the right trade. npm v12 and pnpm 10 made the same call on install scripts. When a privileged default keeps getting exploited, more warnings don't fix it. Making it opt-in does.

Evaluation-mode insights are only available on Enterprise Cloud, so most open source maintainers will need to find affected workflows themselves. Search your repos for pull_request_target now. Keep exceptions only for the workflows that truly need the trigger.

socket.dev/blog/github-to-bloc