A single ${{ github.head_ref }} inside a run: block is all a fork author needs to execute code with your GITHUB_TOKEN. ci-cd-security, from Superagent, teaches your coding agent to catch that bug and eight other classes of GitHub Actions mistakes by reading the YAML alone: no scanners, no commands, no network. It has 11,100 installs on skills.sh and was on its Hot list on November 29, 2026.
What it does: nine passes over your workflows
The skill kicks in when you hand the agent a file from .github/workflows/, paste workflow YAML, or mention pull_request_target, action pinning or token permissions. Its mental model is a two-by-two grid: privileged or unprivileged workflow (secrets, write permissions, release artifacts) against trusted or untrusted code (anything a fork PR author can influence: the code, the title, the branch name, commit messages, caches and artifacts). Compromise happens in exactly one cell: a privileged workflow running untrusted code.
To find it, the skill walks nine passes in order:
- Dangerous triggers:
pull_request_targetandworkflow_runare P0 unless justified;issue_commentorissues, P1. - Permissions: no top-level
permissions:block is P1; it recommendspermissions: {}and per-job grants. - Action pinning: a branch is P0, a tag P1, a SHA without a version comment P3.
- Shell injection:
${{ github.event.* }}or${{ github.head_ref }}interpolated intorun:is P0, as are writes to$GITHUB_ENVbuilt from attacker input. - Untrusted checkout: the PR head
refin a privileged workflow, andpersist-credentialsnobody needs. - Caching in privileged contexts: any
cache:in a release workflow is P0. - Artifact-borne injection from another workflow's unvalidated artifacts.
- Release hardening:
environment:, OIDC instead of long-lived registry tokens, provenance attestations. - Self-hosted runners reachable from forks.
Every finding comes with a P0–P3 severity, the line, why it is exploitable in that particular workflow, and a concrete rewrite. When nothing fires, the skill has to say so and list what it did not check: organization settings, branch and tag protection, or the source of the pinned actions themselves.
Installing and using it
It is a folder with a SKILL.md and three Markdown references (triggers.md, checklist.md and patterns.md), MIT-licensed. Install it with the skills.sh CLI:
npx skills add https://github.com/superagent-ai/skills --skill ci-cd-securityFrom then on, asking the agent something like "review .github/workflows/release.yml before I merge it" is enough. patterns.md is the reference you will lean on most: recipes for the things teams usually get wrong, such as commenting results on fork PRs, labelling PRs by title or publishing to npm or PyPI on a tag push, which almost always means splitting the workflow in two.
Risks and limits
The good news is the attack surface: the skill ships no scripts, asks for no tools or credentials, and never touches the network. The only thing you run is npx skills, which pulls an npm package. The same repository also holds other skills (hacker, redteam-autoresearch, skill-security) that do include scripts or offensive workflows; --skill ci-cd-security installs this one only.
The real limit is the flip side: the auditor is the model. There is no rule engine behind it, so two runs over the same YAML may not return the same findings, and it cannot serve as a blocking CI check. Anything that requires asking GitHub is also out of reach, which the skill admits: it cannot confirm whether a SHA is an impostor commit without the API, and it never sees your organization settings. It is a review at the moment you write the workflow, not a guarantee.
ci-cd-security vs zizmor
The skill says it encodes the consensus of Astral, OpenSSF, GitHub Security Lab, Chainguard and the zizmor audit set. zizmor is the go-to static analyzer for GitHub Actions (MIT, around 7,200 stars).
| ci-cd-security | zizmor | |
|---|---|---|
| Approach | Natural-language rules applied by the model | Static analyzer written in Rust |
| Install | npx skills add … | pip, uvx, brew, cargo or a Docker image |
| Output | P0–P3 findings with the rewrite explained | Reproducible findings; --fix repairs some |
| Talks to GitHub | No | Optionally, with --gh-token (e.g. impostor commits) |
| Deterministic | No | Yes |
| License | MIT | MIT |
When to use which: zizmor is what I would put in the pipeline as a gate, because it returns the same result every run and can check on GitHub what the YAML does not tell you. The skill fits earlier, while the agent is writing or editing the workflow: it explains the why behind each finding and proposes the safe pattern without leaving the editor. Running both is not redundant; the skill's own checklist points to zizmor's impostor-commit audit for what it cannot verify.