Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates and revises secure, verifiable GitHub Actions workflows for CI, matrices, releases, deployments, caching, Secrets and OIDC.
Use this skill ↓27% 86%+59 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
pull_request_target 执行 PR 代码。@main、@master、@latest 或可移动的 @vN tag。permissions 和 timeout-minutes;不依赖仓库默认权限。package.json、.nvmrc、pyproject.toml、go.mod、Cargo.toml、Dockerfile 与 .github/workflows/。pull_request:按不可信代码处理,使用只读 Token,不提供 Secrets,不在高权限自托管 Runner 上执行 fork 代码。pull_request_target:仅处理标签、评论等可信基准分支逻辑;绝不 checkout PR head、运行 PR 脚本或安装 PR 依赖。push / tag / workflow_dispatch:仍需限制分支、输入、Environment 和权限;写操作放入独立 job。${{ github.event.* }} 等不可信表达式直接插进 run:。通过 env: 传值,并在脚本中按数据处理。优先拆分职责:
ci.yml:lint、test、build;pull_request 与受控 push 触发,只读权限。release.yml:仅在用户明确要求时生成;使用受保护 tag 或手动触发。deploy.yml:仅在部署目标明确时生成;使用 GitHub Environment、并发控制和最小 OIDC / Secrets 权限。为耗时 job 设置取消策略和超时。矩阵只覆盖项目真正支持的版本;缓存 key 必须包含 lockfile,不能缓存凭据和构建秘密。
Next to this one in the catalogue, plus more from the same author.