# CI/CD Security Audit — GitHub Actions

> Audit GitHub Actions workflows for the classic supply-chain and privilege-escalation mistakes: unpinned uses: refs, pull_request_target abuse, script injection via ${{ github.event.* }}, missing or over-broad permissions, PR-head checkouts, and secrets echoed in run lines.

CI/CD Security Audit — GitHub Actions is a paid AI agent skill on Agensi by Nenad Zivotic, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ci-cd-security-audit-github-actions
- Tags: security, devsecops, devops, static-analysis, audit

## About this skill

The same handful of workflow bugs accounts for most GitHub Actions compromises — a tag-pinned action gets re-pointed at malicious code, a PR title lands in a run: block, pull_request_target checks out the head SHA with secrets in scope. This skill finds all of them in one pass and hands back a triaged, file:line fix list.

The agent runs a bundled, zero-dependency Node script over .github/workflows/*.yml and turns the JSON report into a hardening plan.

DETECTS (fail severity)
- script-injection — attacker-controlled github.event.* fields (PR/issue titles and bodies, comments, reviews, head_ref, commit messages) interpolated into run blocks
- pull-request-target-checkout — ref: github.event.pull_request.head.sha under pull_request_target — the textbook CI RCE
- permissions-write-all — every scope granted to GITHUB_TOKEN
- unpinned-action — uses: with no version ref at all

DETECTS (warn severity)
- unpinned-action — uses: pinned to a mutable tag/branch instead of a full commit SHA; docker:// images without a @sha256: digest
- pull_request_target trigger present
- permissions-missing — no permissions: block declared
- permissions-broad-write — contents: write / id-token: write
- secret-in-run — ${{ secrets.* }} interpolated directly in run/echo lines

OUTPUT
JSON on stdout: findings[] with id, severity, file, line, detail, recommendation, plus a summary with fail/warn counts and byId breakdown. Exit 0 clean / 1 findings / 2 usage error — drop into a pre-merge check or CI job.

WHY IT'S SAFE TO RUN EVERYWHERE
Pure line-based static scan: reads *.yml/*.yaml only, zero npm dependencies, no network calls, never executes a line of workflow code. Node 18+.

HONEST ABOUT LIMITS
A line-based auditor can't evaluate action internals, reusable-workflow trust, environment protection rules, or org/enterprise token defaults. The skill's triage guide says exactly what was and wasn't checked — clean means "no known patterns matched", not "secure".

Includes a triage playbook per finding ID and an optional CI-gate recipe (fail the pipeline on summary.fail > 0).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the CI/CD Security Audit — GitHub Actions skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does CI/CD Security Audit — GitHub Actions do?

Audit GitHub Actions workflows for the classic supply-chain and privilege-escalation mistakes: unpinned uses: refs, pull_request_target abuse, script injection via ${{ github.event.* }}, missing or over-broad permissions, PR-head checkouts, and secrets echoed in run lines.

### Which AI agents support CI/CD Security Audit — GitHub Actions?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use CI/CD Security Audit — GitHub Actions?

Connect your AI agent to Agensi through MCP, then ask it to use CI/CD Security Audit — GitHub Actions on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
