Review agent · Infra & pipeline
CI/CD pipeline
Checks pipelines for leaked secrets, untrusted code execution and over-broad tokens.
Illustrative example of how this agent reviews a finding.
Why this agent matters
Your pipeline holds deploy keys and publishes artifacts, which makes it a prime target. The 2021 Codecov incident showed how a tampered CI script could exfiltrate secrets from thousands of pipelines.
Workflow YAML is rarely reviewed with the same care as code. This agent looks at the build-time trust decisions: what runs, with which secrets and which permissions.
What it checks
- Secrets printed or exposed in build logs
- pull_request_target workflows that check out fork code
- Third-party actions or images not pinned by SHA
- Excessive job token permissions
When it marks a finding as a likely false positive
- Untrusted code never runs with secrets
- Actions are pinned and tokens scoped
The fix it suggests
- Scoping job token permissions
- Pinning actions by commit SHA
- Masking secrets and isolating fork builds
Scope and limits
This agent judges findings the scanners report (Semgrep for code, secrets and IaC/config, OWASP ZAP for passive website scans, our rules for imported API collections); it doesn't hunt for new bugs on its own. A finding reaches it when its scanner, CWE or rule/path keywords match this vulnerability class. It sees only the minimal code or evidence around the finding, with secrets redacted, and Claude, via Amazon Bedrock, returns a verdict with a confidence score, a plain-English explanation and a suggested fix.
Common questions
Why pin actions by SHA instead of a tag?
Tags can be moved to point at different code. A commit SHA can't, so a compromised upstream can't silently change what your pipeline runs.
Is pull_request_target dangerous in GitHub Actions?
It runs with the base repository's secrets and token, so checking out and running a fork's pull-request code in that workflow lets untrusted code reach them. Keep untrusted code away from secrets and isolate fork builds.
What permissions should a CI job token have?
Only what the job needs. The agent flags excessive job token permissions and recommends scoping them, alongside masking secrets in build logs.
Related agents
- Infrastructure & IaC — Reviews Terraform, Helm, Ansible and server config for insecure defaults and exposure.
- Cloud security — Checks cloud resources for public exposure, wildcard IAM and long-lived keys.
- Container & Kubernetes — Checks Dockerfiles and Kubernetes manifests for root, privileged and host-level access.
See all 21 review agents → · Agent setup reviewer · How the pipeline works
Run the CI/CD pipeline agent on your repository
100 free credits, no credit card. Every finding comes with a verdict and a fix.
Get started free