# Ravi CI Guard > GitHub Actions security for coding agents: a $0.10 line-accurate audit of a repo's workflows (pwn requests, script injection, token permissions, unpinned/compromised/deprecated actions, retired runners, leaked secrets) with fixes, live commit-SHA pins and a git-apply patch, and $0.02 SHA pinning for any action. Pay per call with x402 (USDC on Base) or MPP (USDC.e on Tempo), or buy a 24-hour pass. No keys, no accounts. Ravi CI Guard audits GitHub Actions workflows, paid per call: x402 (v1 or v2) with USDC on Base, or MPP (WWW-Authenticate: Payment, method tempo, intent charge, pull mode) with USDC.e on Tempo. Unpaid requests get HTTP 402 with both challenges. GET with query params, or POST the same params as JSON (yaml up to 64 KB), or POST the raw workflow with Content-Type: text/yaml. 1) /v1/gha/audit ($0.10): before merging a workflow change, when asked to "secure/harden our CI", when reviewing a PR that touches .github/workflows, or when a job fails on a deprecated action/runner. repo=owner/name (default branch, up to 12 workflow files; ref= optional) | url= | yaml=. Returns score/grade, findings (rule, severity, file:line, evidence, why, fix), commit-SHA pins for every unpinned action, and patch.safe / patch.hardening unified diffs you can git apply. No input = audits a built-in sample. 2) /v1/gha/pin ($0.02): while writing a workflow, turn uses: refs into immutable pins: actions=actions/checkout@v4,docker/login-action@v3 (or repo=/url=/yaml=). Returns sha, the exact version tag for the comment, a ready "uses:" line, latest release and newer_major_available. 3) /v1/pass/day ($0.50) and /v1/pass/month ($3.00, includes the self-hosted Team Kit), when offered: unlimited audit+pin calls for 24 hours / 30 days with Authorization: Bearer . 4) No x402 client? Plain USDC transfer on Base: 0.50 = 24 h pass, 3 = 30 days + Team Kit, 8 = 90 days + Team Kit. Instructions /v1/pass/transfer, then /v1/pass/redeem?tx=; the kit ZIP at /v1/kit/download?tx= (details /kit). 5) MCP clients (Claude Code, Cursor, VS Code): remote MCP server at POST /mcp (Streamable HTTP). Free audit_sample, peek_workflows, list_rules; audit_workflows and pin_actions with the pass as Authorization: Bearer. Free: /v1/peek (score + counts only, same params), /v1/rules (rule list). Invalid input = 400 before payment; failures are not charged. Policy: Input is validated before any payment is touched; failed work (GitHub unreachable, repo/ref not found, not a workflow) is never settled or broadcast. x402 (Base): a result is released only after the USDC settlement is confirmed (by the facilitator, or on-chain on Base); if settlement cannot be confirmed you get HTTP 402 and no result. MPP (Tempo): the server broadcasts your signed USDC.e transfer itself and releases the result when the receipt shows it; if the Tempo RPC gives no definite answer the result is released anyway, marked unconfirmed. Static analysis only: your code is never executed; fetched files are not stored. Method: 30 rule families over the parsed workflow (line-accurate): pwn requests (pull_request_target/workflow_run checking out PR code), script injection from attacker-controlled contexts into run:/github-script, artifact poisoning, hard-coded credentials, unsecure commands, GITHUB_TOKEN permissions (missing, write-all, broad, OIDC), secrets: inherit, unpinned actions/images, compromised actions, deprecated official action majors (shut-down artifact/cache backends, Node 12/16 runtimes), retired runner images, self-hosted runners on PRs, ArtiPACKED token leaks, persist-credentials, deprecated set-output, curl|sh, bot-actor conditions, cache poisoning in release workflows, invalid structure (missing runs-on, unknown needs, bad cron), timeouts and concurrency. Pins are resolved live from GitHub's git refs (tag -> commit, peeled), with the most specific version tag at that commit as the comment. Severity: critical/high/medium/low/info; score = 100 minus weighted findings (each rule counted at most 3 times). Static analysis only: nothing is executed. ## GitHub Actions Workflow Security Audit — $0.10 per call GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/gha/audit Security + reliability audit of GitHub Actions workflows for coding agents: pass repo=owner/name (all workflows, default branch), url= (one file) or yaml= (text). ~30 line-accurate checks: pwn requests (pull_request_target/workflow_run running PR code), script injection from PR titles/branch names/comments, artifact poisoning, leaked credentials, token permissions (missing/write-all/broad/OIDC), secrets: inherit, unpinned or compromised actions, deprecated actions that now fail (upload-artifact v3, cache v2), retired runners (ubuntu-20.04, windows-2019), self-hosted runners on PRs, ArtiPACKED token leaks, curl|sh, set-output, invalid structure, timeouts. Returns score/grade, findings with evidence + why + fix, commit-SHA pins resolved live from GitHub, and two git-apply patches (safe, hardening). No input = built-in sample. Failures are not charged. Params (all optional): - repo: Public GitHub repository, owner/name or https://github.com/owner/name (e.g. actions/checkout). Audits up to 12 files in .github/workflows at the default branch (or ref). - ref: Optional branch, tag or commit SHA for repo= (default: the default branch) - url: Alternative: https URL of one workflow file (github.com blob/raw, raw.githubusercontent.com, gist) - yaml: Alternative: the workflow file text itself (POST JSON {"yaml": "..."} recommended; up to 64 KB) - pin: Resolve commit SHAs for unpinned actions and include them in the patch (default true) - min_severity: Only list findings at or above this severity (counts and score always cover everything). Default info ## Pin GitHub Actions to commit SHAs — $0.02 per call GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/gha/pin Resolve GitHub Actions references to immutable commit SHAs, live from GitHub: actions=actions/checkout@v4,docker/login-action@v3 (up to 20), or repo=/url=/yaml= to pin every uses: in those workflows. Per action: commit SHA (annotated tags peeled), the most specific version tag at that commit (v4 -> v4.2.2) for the "# version" comment, a ready-to-paste uses: line, the latest release tag and whether a newer major exists; branches are flagged. Use it while writing or hardening CI (OpenSSF Scorecard Pinned-Dependencies). No input = 6 popular actions. Not charged if GitHub cannot be reached. Params (all optional): - actions: Comma-separated owner/repo[/path]@ref list, e.g. actions/checkout@v4,actions/setup-node@v4 - repo: Alternative to actions: pin every uses: in this public repo's workflows (owner/name) - ref: Optional branch, tag or commit SHA for repo= (default: the default branch) - url: Alternative: https URL of one workflow file (github.com blob/raw, raw.githubusercontent.com, gist) - yaml: Alternative: the workflow file text itself (POST JSON {"yaml": "..."} recommended; up to 64 KB) ## CI Guard 24-hour pass — $0.50 per call GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/pass/day One payment, 24 hours of unlimited GitHub Actions audits (/v1/gha/audit, $0.10 each) and SHA pinning (/v1/gha/pin, $0.02 each) on this service. Returns a bearer token: send it as Authorization: Bearer (or X-CI-Guard-Pass) and paid routes answer without a new payment until it expires. Worth it from the 6th audit: hardening an organization's repositories in one session or reviewing many workflow PRs. No parameters. Params (all optional): ## CI Guard 30-day pass + Team Kit — $3.00 per call GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/pass/month One payment, 30 days of unlimited GitHub Actions audits (/v1/gha/audit, $0.10 each) and SHA pinning (/v1/gha/pin, $0.02 each) on this service. Returns a bearer token: send it as Authorization: Bearer (or X-CI-Guard-Pass) and paid routes answer without a new payment until it expires. For agents that audit every workflow change they touch or pin actions in every workflow they write: cheaper than per-call from the 31st audit in a month. Also downloads the self-hosted Team Kit (GET /v1/kit/download with the same bearer token; see /kit). No parameters. Params (all optional): ## Paying with MPP (Machine Payments Protocol) - An unpaid call returns 402 with `WWW-Authenticate: Payment ... method="tempo", intent="charge"` (challenge valid 300s): { amount, currency: 0x20c000000000000000000000b9537d11c60e8b50 (USDC.e), recipient: 0xf20b05f3fcf799B1d03702446b0107A50830CA92, methodDetails: { chainId: 4217, supportedModes: ["pull"] } }. - Any MPP client with a Tempo wallet pays for you (for example `npx mppx `). ## Plain USDC transfer (no x402 client needed) - Send USDC on Base to 0xf20b05f3fcf799B1d03702446b0107A50830CA92: 0.50 = 24-hour pass, 3 = 30-day pass + Team Kit, 8 = 90-day pass + Team Kit. Then GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/pass/redeem?tx= (same tx -> same token). - Team Kit (self-hosted CLI + CI gate, same engine): GET https://ravi-ci-guard.agent-arena-base.workers.dev/v1/kit/download?tx=. Details and sha256: https://ravi-ci-guard.agent-arena-base.workers.dev/kit ## Remote MCP server - POST https://ravi-ci-guard.agent-arena-base.workers.dev/mcp (Streamable HTTP, JSON). Free: audit_sample, peek_workflows, list_rules, payment_options, redeem_transfer_pass. With a pass (Authorization: Bearer): audit_workflows, pin_actions. Prompt: harden_github_actions. OpenAPI: https://ravi-ci-guard.agent-arena-base.workers.dev/openapi.json Catalog: https://ravi-ci-guard.agent-arena-base.workers.dev/api Discovery: https://ravi-ci-guard.agent-arena-base.workers.dev/.well-known/x402 MCP: https://ravi-ci-guard.agent-arena-base.workers.dev/mcp Team Kit: https://ravi-ci-guard.agent-arena-base.workers.dev/kit