Design and optimize GitHub Actions workflows with security-first practices, efficient resource usage, and reliable automation. Use when creating or reviewing CI/CD workflows, action pinning, OIDC auth, and supply-chain security.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Design and optimize GitHub Actions workflows with security-first practices, efficient resource usage, and reliable automation. Use when creating or reviewing CI/CD workflows, action pinning, OIDC auth, and supply-chain security.
GitHub Actions
Design and optimize GitHub Actions workflows that prioritize security-first practices, efficient resource usage, and reliable automation.
Security-First Principles
Permissions
Default to contents: read at workflow level
Override only at job level when needed
Grant minimal necessary permissions
Action Pinning
Always pin actions to a full-length commit SHA (e.g., actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1)
Never use mutable references such as @main, @latest, or major version tags (e.g., @v4)
Add a version comment next to the SHA for human readability
Use Dependabot or Renovate to automate SHA updates
Secrets
Access via environment variables only
Never log or expose in outputs
Use environment-specific secrets for production
Prefer OIDC over long-lived credentials
OIDC Authentication
Eliminate long-lived credentials:
Azure: Use workload identity federation (preferred for this project)
AWS: Configure IAM role with trust policy for GitHub OIDC provider