A November 2026 report describes work by Python Software Foundation security developers Seth Larson and Mike Fiedler to remove dangerous GitHub Actions triggers and apply related policies across the Foundation-stewarded psf, python and pypi GitHub organizations. They also documented how other projects can review and roll out the policies.
The concern is that some triggers let an outside contributor start a workflow with access to credentials. A pull_request workflow started from a fork runs with a read-only token and no secrets, according to the developers. The similarly named pull_request_target can access a read/write token and repository or organization secrets. It is intended for tasks such as labeling a pull request without running the contributor’s code; checking out and running that code instead creates the risk.
The issue_comment trigger can also expose a workflow’s token and secrets to risk, including when a workflow inserts comment text into a shell command. The developers say such trigger configurations have contributed to real incidents.
Their guidance says organizations on GitHub Team or Enterprise can disable the triggers across repositories with one policy. On the Free plan, the policy can be set repository by repository. They recommend checking what a policy would block before enforcing it.