GitHub Enforces Actions Security Update Blocking High-Privilege PR Workflows by Default
AI coding · Cybersecurity and privacy
GitHub implemented a security update for GitHub Actions on December 2. In public repositories without specific event policies, workflows triggered by pull_request_target are blocked by default to prevent external malicious code from executing with secret access, mitigating supply chain risks.
GitHub officially enacted a new security policy for GitHub Actions workflows on December 2. For public repositories lacking configured applicable event policies, the platform now blocks workflows triggered by the pull_request_target event by default. Because this trigger provides access to repository secrets and tokens, running external contributor code inside it could expose API keys or compromise build pipelines. The policy applies to public repositories on Free, Team, and Enterprise Cloud tiers, leaving private and internal repositories unaffected. Administrators can still grant explicit exceptions for specific workflow files via policy settings.
Key takeaways
- Starting December 2, workflows triggered by pull_request_target are blocked by default on public repositories lacking event policies.
- The change aims to prevent untrusted external code from running in privileged environments with secret access, guarding against token theft and supply chain attacks.
- Workflows testing external code are advised to switch to pull_request events, which default to read-only tokens and cannot access secrets for forks.
- The policy covers public repositories on Free, Team, and Enterprise Cloud plans; private and internal repositories, as well as existing custom policies, remain unaffected.
Source:iThome Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.