Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Technologies

Skill of the day: ci-cd-security, your agent audits GitHub Actions in nine passes, no installs

A skill that reviews your GitHub Actions workflows by reading the YAML: pwn requests, injection, pinning and caches, with severity and a fix.

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:

  1. Dangerous triggers: pull_request_target and workflow_run are P0 unless justified; issue_comment or issues, P1.
  2. Permissions: no top-level permissions: block is P1; it recommends permissions: {} and per-job grants.
  3. Action pinning: a branch is P0, a tag P1, a SHA without a version comment P3.
  4. Shell injection: ${{ github.event.* }} or ${{ github.head_ref }} interpolated into run: is P0, as are writes to $GITHUB_ENV built from attacker input.
  5. Untrusted checkout: the PR head ref in a privileged workflow, and persist-credentials nobody needs.
  6. Caching in privileged contexts: any cache: in a release workflow is P0.
  7. Artifact-borne injection from another workflow's unvalidated artifacts.
  8. Release hardening: environment:, OIDC instead of long-lived registry tokens, provenance attestations.
  9. 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:

bash
npx skills add https://github.com/superagent-ai/skills --skill ci-cd-security

From 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-securityzizmor
ApproachNatural-language rules applied by the modelStatic analyzer written in Rust
Installnpx skills add …pip, uvx, brew, cargo or a Docker image
OutputP0–P3 findings with the rewrite explainedReproducible findings; --fix repairs some
Talks to GitHubNoOptionally, with --gh-token (e.g. impostor commits)
DeterministicNoYes
LicenseMITMIT

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.

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗