github-actions
星标0
分支0
更新时间2026年4月28日 23:23
GitHub Actions workflow security, performance optimization, and best practices
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
GitHub Actions workflow security, performance optimization, and best practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Angular component architecture, RxJS patterns, change detection, and module organization
Azure DevOps pipeline security, YAML structure, variable management, and deployment patterns
Azure Bicep IaC patterns, parameterization, security, and modular design
Dockerfile best practices, security hardening, multi-stage builds, and image optimization
ASP.NET Core patterns, dependency injection, middleware, async/await, and security
FastAPI endpoint design, Pydantic validation, dependency injection, and async patterns
| name | github-actions |
| description | GitHub Actions workflow security, performance optimization, and best practices |
| metadata | {"version":"1.1.0"} |
${{ }} expressions. Escape or validate all user-provided data before use. Never interpolate untrusted user input${{ }} expressions in workflow logs or error messages. Ensure all variables are declared and sourced safely@v1 or @main)permissions block (principle of least privilege)secrets.GITHUB_TOKEN instead of PATs when possiblepermissions:
contents: read # Minimal by default
# Add only what's needed:
# pull-requests: write
# issues: write
::add-mask::actions/cache or built-in)concurrency to cancel redundant runstimeout-minutes to prevent hung jobsif: conditions to skip unnecessary jobspaths and branches filtersworkflow_dispatch for manual triggerspull_request_target security implicationsactions/checkout with persist-credentials: true unless neededpush to all branchesactionlintcontinue-on-error: false as default (explicit failure)fail-fast: true for matrix jobs to stop on first failurecontinue-on-error: true when failure is acceptable