github-actions
Installation
SKILL.md
GitHub Actions Code Review Rules
Security (Critical)
- Pin actions to full commit SHA (not
@v1or@main) - Use minimal
permissionsblock (principle of least privilege) - Never echo secrets or use them in URLs
- Use
secrets.GITHUB_TOKENinstead of PATs when possible - Audit third-party actions before use
- Review expressions (
${{ }}) for injection risks; never interpolate untrusted user input - Validate all inputs to reusable workflows and custom actions
Permissions
permissions:
contents: read # Minimal by default
# Add only what's needed:
# pull-requests: write
# issues: write
Related skills