GitHub to block pull_request_target by default in public repos
Original title: De-fanging dangerous triggers in GitHub Actions across an organization
PSF applied organization policies on psf, python, and pypi; Free-plan users must disable the trigger repository by repository.
On December 2, 2026, GitHub will block the pull_request_target trigger by default in public repositories. The trigger can run a stranger’s pull-request code with a read/write token and repository or organization secrets, a pattern GitHub calls a pwn request. Python Software Foundation engineers removed dangerous triggers and applied event policies across the psf, python, and pypi organizations, and published rollout guidance.
- Team and Enterprise plans can disable the triggers organization-wide; Free plans must do it per repository.
- Ultralytics in December 2024 had a poisoned build cache and malicious PyPI releases via this trigger.
- LiteLLM and Telnyx malicious releases in March 2026 followed a Trivy pull_request_target compromise.
- In April 2026, an elementary-data comment workflow injected shell commands and published a malicious PyPI release.
- issue_comment workflows can expose the same token and secret risk.
Impact: Workflow secrets stolen and malicious package releases published
| Product | Affected |
|---|---|
| GitHub Actions | public repositories using pull_request_target |
- 1.Set the organization event policy, review what it would block, then enforce it.
- 2.Remove pull_request_target and issue_comment workflows that check out or run untrusted code.
- 3.Rotate exposed tokens and move publishes to Trusted Publishers where possible.
- Vendors
- GitHub
- Products
- GitHub ActionsPyPI
- Organizations
- Python Software FoundationAlpha-Omega
From the original article
4 min read at pyfound.blogspot.comOn December 2, 2026, GitHub will start blocking the pull_request_target trigger by default in public repositories. If that sentence means nothing to you, this post is for you. If it fills you with dread, it is also for you.
By pyfound.blogspot.com via ubernostrum · pyfound.blogspot.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.