Secures GitHub Actions workflows by implementing safe trigger patterns for pull requests and forks to prevent privilege escalation and secret exfiltration.
This skill provides expert guidance and implementation patterns for securing GitHub Actions triggers, specifically addressing high-risk configurations like pull_request_target. It helps developers implement robust security boundaries by using two-stage CI processes, approval gates for fork deployments, and least-privilege permission sets. By following these patterns, teams can safely accept community contributions while protecting their repository secrets and infrastructure from malicious code injection.
主な機能
01Secure Two-Stage Fork CI patterns
02Least-privilege GITHUB_TOKEN configuration
03Manual approval gates for fork deployments
04Detailed comparison of pull_request vs pull_request_target
050 GitHub stars
06Defense patterns against credential exfiltration
ユースケース
01Safely running tests on community contributions from forks
02Hardening CI/CD pipelines against privilege escalation attacks
03Implementing secure preview deployments for pull requests