/skillry-devops-and-release:ci-cd-pipeline-reviewfrom skillry-devops-and-release
Reviews CI/CD pipeline configurations for trigger correctness, secret handling, caching, matrix builds, artifact retention, and security hardening. Supports GitHub Actions, GitLab CI, CircleCI, Jenkins.
Ships in skillry-devops-and-release. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit GitHub Actions workflows, GitLab CI pipelines, CircleCI configs, or equivalent: trigger correctness, secret handling, job dependency ordering, cache hygiene, matrix configuration, artifact retention, fail-fast behavior, and deployment gate safety. Identify security misconfigurations, unnecessary permissions, and reliability anti-patterns — each with a file:line and a concrete fix. The review is read-only: it never triggers a run, approves a deploy, or prints a secret value.
Skillry 3.0.0 merged these former skills into this one. The procedure below stays the default; when the task matches a row, open only that reference.
| Former skill | Reference | Use for |
|---|---|---|
github-actions-hardening (third-party, github/awesome-copilot) | references/github-actions-hardening.md | GitHub Actions threat model: ${{ }} script injection, pull_request_target/workflow_run/issue_comment privilege, SHA pinning, permissions:, GITHUB_ENV injection, OIDC, self-hosted runners |
GITHUB_TOKEN permissions)..github/workflows/*.yml, .gitlab-ci.yml, .circleci/config.yml, Jenkinsfile, or equivalent. List each workflow, its triggers, and its purpose.pull_request vs push vs workflow_dispatch are used appropriately; deploy/release workflows trigger only on push to the default branch or tags, never on pull_request; workflow_run triggers do not grant elevated permissions to fork PRs; schedule intervals are reasonable (not sub-5-minute).GITHUB_TOKEN permissions. Check permissions: at workflow and job level. Least privilege applies: a test-only job needs contents: read at most. Flag permissions: write-all or a missing block (defaults to repo settings, often too broad).${{ secrets.FOO }}: is it needed in that job? Confirm it is not echoed to logs (echo, run: env, ::debug::) and is passed to third-party actions as env vars, not inline args (args appear in logs).needs: chains tests before deploy and release jobs depend on all required gates. Flag a missing needs: that lets a deploy run concurrently with tests.hashFiles('**/package-lock.json')); restore keys are ordered specific to general; PR caches cannot poison the main branch.fail-fast is intentional per matrix; dimensions are not combinatorially explosive (3x3x3 = 27 jobs per PR is likely too many).retention-days; names are unique across matrix legs (include ${{ matrix.os }}).needs:; production deploys require manual approval via environment: protection; deploy runs with environment-scoped secrets.permissions: is set at workflow or job level with minimum required scopes.needs: graph ensures tests complete before any deploy job starts.fail-fast behavior is intentional for each matrix configuration.retention-days is explicitly set.environment: protection rules.# List workflows and their trigger blocks
for f in .github/workflows/*.yml .github/workflows/*.yaml; do
echo "== $f =="; grep -nE "^(on|name):|push:|pull_request:|workflow_dispatch:|schedule:" "$f"
done
# Find over-broad permissions and unpinned actions
grep -rn "write-all\|permissions:" .github/workflows/
grep -rnE "uses:\s+\S+@(v?[0-9]+|main|master)\b" .github/workflows/ # mutable refs -> pin to SHA
# Find secrets echoed to logs (high-risk)
grep -rnE "echo .*secrets\.|run:\s*env\b|::debug::" .github/workflows/
# Find deploy jobs missing a needs: gate
grep -rnE "environment:|deploy" .github/workflows/
# Least-privilege + pinned action + gated deploy (target pattern)
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@<commit-sha> # pinned, not @v4
deploy:
needs: [test] # gate: tests must pass first
environment: production # manual approval via protection rule
runs-on: ubuntu-latest
Rank findings by exploitability and blast radius so the report drives action:
write permissions or read production secrets (e.g., pull_request_target running untrusted code with secrets, or self-hosted PR runners with prod access). An attacker can exfiltrate secrets or push to the repo.write-all or broad permissions: on a workflow that handles untrusted input; a deploy job missing a test needs: gate; an unpinned third-party action used in a privileged job.retention-days, sub-5-minute schedules, all-sequential jobs (cost/time only, no security impact).A misconfiguration's severity rises sharply when it sits on a trigger reachable by an untrusted actor (pull_request from forks, workflow_run), and falls when it is only reachable by trusted maintainers on a protected branch.
A workflow contains:
on: [pull_request_target]
permissions: write-all
jobs:
test:
steps:
- uses: actions/checkout@v4
with: { ref: ${{ github.event.pull_request.head.sha }} }
- run: npm install && npm test # runs the PR's code with write-all + secrets
Report as Critical at the on: and permissions: lines: pull_request_target runs with the base repo's secrets and write-all token, but checks out and executes the fork's untrusted code — a classic exfiltration path. Fix: use pull_request (no secrets for forks) for tests, scope permissions: contents: read, and never check out + execute fork code under pull_request_target. This single pattern is the highest-value thing to grep for in any public repo's CI.
uses: actions/checkout@v4 can be hijacked if the tag is moved; pin to a commit SHA.write-all permissions. A compromised step can push to the repo, create releases, or modify issues.run: echo "Token is ${{ secrets.API_TOKEN }}" logs the secret (masking has workarounds).needs: on deploy. Deploy runs in parallel with tests; a failing test does not block it.node_modules; the main branch restore key picks it up.workflow_run + fork PR elevation. A workflow_run trigger with write permissions can be exploited by a fork PR.## CI/CD Pipeline Review
### Workflows found
| File | Trigger | Purpose |
### Security findings
| Severity | Finding | File:line | Recommendation |
### Permission audit
| Workflow/Job | Current permissions | Minimum required |
### Job dependency graph issues
- Missing needs: [job X should depend on job Y]
### Cache configuration
- Keys include lockfile hash: yes/no | Cross-branch contamination risk: yes/no
### Deployment gate status
- All test jobs in deploy needs: yes/no | Manual approval for prod: yes/no | Env secrets scoped: yes/no
### Performance / cost findings
- Parallelization opportunities | Excessive matrix size | Artifact retention not set
### Recommended actions (priority order)
1. ...
Done means all workflows are listed with triggers, security findings carry severity + file:line + fix, the permission and deployment-gate audits are complete, cache and matrix risks are assessed, and recommendations are ordered by priority — with no secret value printed.
references/github-actions-hardening.md (opens in a new tab)references/github-actions-hardening/LICENSE (opens in a new tab)references/github-actions-hardening/references/injection.md (opens in a new tab)references/github-actions-hardening/references/permissions-and-tokens.md (opens in a new tab)references/github-actions-hardening/references/report-format.md (opens in a new tab)references/github-actions-hardening/references/supply-chain.md (opens in a new tab)references/github-actions-hardening/references/triggers-and-privilege.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fluxonlab/skillry --plugin skillry-devops-and-releaseOther plugins' skills for the same job