# Deterministic CI/CD Supply-Chain Guard

> Replaces vibe-coding with a local AST engine. Forces coding agents to mathematically prove they fixed mutable tags, RCEs, and excessive permissions in GitHub Actions without hallucinating.

Deterministic CI/CD Supply-Chain Guard is a free AI agent skill on Agensi by Rajeev Nath, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Rajeev Nath](https://www.agensi.io/creators/zshor-astal)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.1
- Last updated: 2026-11-27
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/deterministic-ci-cd-supply-chain-guard
- Tags: devops, github-actions, security, supply-chain, cicd

## About this skill

Autonomous coding agents are notoriously bad at writing secure GitHub Actions. They hallucinate commit SHAs, leave ${{ github.* }} contexts vulnerable to shell injection, and overlook global permissions.

Designed for enterprise environments by an independent vulnerability analyst, this skill replaces generic prompt engineering with a deterministic, local AST parsing engine.

### What you get

cicd_auditor.py: A zero-knowledge, local Python engine that parses YAML directly to detect mutable tags, RCE injections, and excessive permissions.

SKILL.md: The rigid behavioral membrane that locks your agent out of manual review and forces it to consume the engine's JSON output.

### Why this is different

Zero Token Bloat (The Membrane): The local AST engine dissipates all safe boilerplate and only passes high-potential vulnerability vectors to the agent as a tiny, structured JSON payload.

Invariant Verification Loop: The agent is physically trapped in the execution loop until the Python engine returns total_vulnerabilities: 0. It cannot hallucinate a fake commit SHA; if it doesn't fetch the real one, the engine will reject the YAML.

Enterprise-Grade Focus: Operationalizes highly specific, modern attack vectors found in massive open-source pipelines (like untrusted context injections and unpinned @v4 actions).

## Requires

- Python 3.8+
- PyYAML

Ensure Python 3 and the PyYAML package (pip install pyyaml) are installed on the host machine before running your agent.

## Known limitations

Requires Python 3 for the internal auditor script. Limited to GitHub Actions workflows. External network access needed to resolve real commit SHAs via git ls-remote.

## 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 Deterministic CI/CD Supply-Chain Guard skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does this send my code to a third-party server?

No. The AST engine (cicd_auditor.py) runs 100% locally on your machine. The only network request made is by your agent querying the public GitHub API to resolve mutable release tags into exact commit SHAs. Your workflow files never leave your environment.

### Why do I need this if I can just prompt my agent to secure my workflows?

Without a deterministic parser, agents frequently hallucinate security fixes. They often invent fake commit SHAs or claim to have fixed permissions without actually modifying the file correctly. This skill traps the agent in a verification loop, forcing it to rely on a mathematical AST parser. It physically cannot complete the task until the engine proves the vulnerabilities are resolved.

### Which coding agents does this work with?

It works with any autonomous agent that supports standard SKILL.md injection and local shell execution. We have successfully tested it with OpenCode, Claude Code, and Cline.

---

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.
