alpha-omega.dev·6 december 2024

How to Block Dangerous GitHub Actions Triggers at Org Scale

Image for the article: How to Block Dangerous GitHub Actions Triggers at Org Scale
Image via alpha-omega.dev

GitHub will block the pull_request_target trigger by default in public repositories starting December 2, 2026, to prevent unauthorized access to secrets. The trigger, along with issue_comment, poses significant risks as they can execute workflows with full repository access using malicious pull requests or comments. Recent incidents, including compromises of Ultralytics, LiteLLM, and elementary-data, highlight the dangers of these triggers. Maintainers are advised to search for and disable these triggers in their workflows to prevent supply-chain attacks.