AGENT SKILL

github-actions-review

Review GitHub Actions workflows for backend CI, secret exposure, permissions, dependency install, cache safety, pinned actions, and release or deployment risk.

License 许可
MIT
最近更新
2026-07-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
github-actions-review
description
Review GitHub Actions workflows for backend CI, secret exposure, permissions, dependency install, cache safety, pinned actions, and release or deployment risk.

03 SKILL.md 正文

When to Use

  • .github/workflows files change.
  • Backend CI, test, lint, build, or deploy behavior changes.
  • Actions permissions, secrets, or cache behavior changes.
  • PR validation reliability is under review.

When NOT to Use

  • Local-only scripts with no CI usage.
  • Non-GitHub CI systems unless patterns clearly apply.
  • Generic YAML formatting review.

Workflow

  1. Identify workflow trigger and trust boundary.
  2. Review permissions, secrets, actions, and scripts.
  3. Check CI reproducibility and cache behavior.
  4. Review deploy or release risk.
  5. Report blockers and hardening suggestions.

Review Steps

  • Check permissions is least privilege.
  • Verify secrets are not printed.
  • Verify secrets are not passed to untrusted code.
  • Check third-party actions are pinned.
  • Check versioned actions are intentional.
  • Review pull request from fork behavior.
  • Verify dependency caches cannot poison trusted builds.
  • Check required checks cover backend behavior.

Constraints

  • Do not add organization-private enforcement policy.
  • Do not assume secrets are safe in all trigger contexts.
  • Do not run unpinned remote install scripts without review.
  • Keep workflow advice readable and actionable.

Expected Outputs

  • Trust boundary summary.
  • Permission and secret risks.
  • CI reproducibility gaps.
  • Required workflow tests or dry-run evidence.

04 同仓库更多 Skills