→ Back to Home
GitHub Actions

Python Software Foundation Proactively Secures GitHub Actions Workflows Ahead of GitHub's `pull_request_target` Default Block

The Python Software Foundation (PSF) has taken significant steps to remove dangerous GitHub Actions triggers across its `psf`, `python`, and `pypi` GitHub organizations. This action comes in anticipation of GitHub's upcoming default blocking of the `pull_request_target` trigger in public repositories, effective December 2, 2026. This development is crucial for any organization or individual maintaining public repositories with GitHub Actions. The `pull_request_target` trigger, while seemingly innocuous, can grant untrusted external code access to repository secrets and permissions, posing a significant supply chain security risk. The PSF's proactive remediation, involving security engineers Mike Fiedler and Seth Larson, demonstrates best practices in securing CI/CD pipelines. The broader trend in cloud and DevOps is a heightened focus on software supply chain security. Recent incidents, such as the Megalodon campaign and various secret exfiltration attempts, have highlighted the vulnerabilities inherent in CI/CD workflows. GitHub's move to block `pull_request_target` by default is a direct response to these threats, aiming to reduce the attack surface. This aligns with GitHub's 2026 security roadmap, which emphasizes deterministic dependencies, secure defaults, and improved observability in CI/CD. Practitioners should immediately audit their GitHub Actions workflows in public repositories for the use of `pull_request_target` or `issue_comment` triggers. Workflows relying on these for legitimate automation, such as labeling pull requests from forks or on-demand CI, will require refactoring. Organizations on GitHub Team or Enterprise plans can disable these triggers organization-wide, while those on the Free plan must do so per repository. Furthermore, adopting practices like SHA pinning for actions, implementing least-privilege principles for workflow tokens, and migrating to features like Trusted Publishers for artifact publishing can further harden CI/CD pipelines against similar attacks.
#github actions#security#supply chain security#ci/cd#open source#python
Read original source