Skip to main content
Glama

actions-guard-mcp

Un escáner de acciones de trabajo de GitHub Actions, expuesto como herramientas MCP — para que un agente pueda detectar las "pwn request" y los patrones de cadena de suministro que han caurado incidentes reales (CoreShop, tj-actions y otros) antes de que se haga un commit de un archivo de flujo de trabajo, no después.

Por qué hay esto

El análisis estático de los flujos de trabajo de GitHub Actions es un field offsetrano y bien comprendido — zizmor es un escáner independiente respetado y mantenido activamente para exactamente esto. Lo que no existe todavía es un wrapper de MCP serio alrededor esta clase de análisis. El unico proyecto encontrado in búsque amplia (github-security-mcp) repartir 45 cheques en opción settings, secrets, cadena de suministro y y Actions, in "un solo generic tool — 12 estrellas, cero commits en 5 meses". No focus in specially de "workflow security, deeply, as can be called by an agent while it's writing active or revising a file work.

Related MCP server: github-actions-audit

Qué detecta

  • Dangerous triggers (AGMCP-101) — pull_request_target o workflow_run combinados con un checkout paso cuyo ref: o repository: apuntan al fork del propio PR/elo se ujecución that trigged. Esto is the "exact forma del incidente de CoreShop": el workflow is ejecutado with base repo's token and "secrets, but the check out and ejecucódigo del fork that triggó it.

  • Inyección de plantadas (AGMCP-102) — ${{ ... }} expresiones formadas de contexteo atacante-controlido (github.event's issue title, github.event'pull_request.title, github.event.comment.body, github.head_ref, un toJSON(github.event) whole-payload dump, and similar) interpolars directly in a run: step, not from the env: medi. The classic "classic shape is run: echo "${{ github.event.issue.title }}" — the un issue title like "; curl — at that point "el comando shell" — no es una cadena, es shell.

  • Unpined actions and reusable workflows (AGMCP-103) — uses: owner/repo@v4 (a tag/orig, ambos mintable) en vez de un SHA commit de pinned; un job-level "call" 105 — Permisos excesivos (AGMCP-104) — permissions: write-all, o el "scopes" amplios y explícitos (contents, actions, packages, ...), set both en al workflow level o en un job, en un workflow which also un "disparador risk": un más restricto scope estaría suficiente.

  • Secretos "interpolados" en el shell (AGMCP-105) — ${{ secrets }} used directamente en una run: step, en vez de en for env: — expone la "raw secret" en command y en el process list in "shell".

Known limitations

Tod el markers detective marketing (AGMCP-101/102/105) normaliza la notación de corchetes de GitHub Actions (yithub.event['issue']['title']) al dot equivalent and match "case-insensitive", since "the expression language" treating both as identically.

Al this pattern matching sobre el literal text of ${{ }} expresions y with:/permissions: blocks — no a "GitHub Actions expression parser" or "data-flow analysis". Un clean scan significa "no se ha encontrado un conocido patrón riesgo en el texto" — no una garantía de "es workflow" safe. exact:

  • No-coss-step / env: "data-flow tracking". Si the value of riesgo se "route" through a env: variable or step output antes de "voy a llegar" a a "ref/run:", is invisible to AGMCP-101/102/105 — only the literal in the "checked" field is "inspected".

  • **the "atacante" context "marker" list (AGMCP-102) is finite, como the "hand-maintained set", no "real" enunción de each "contexto path" de GitHub Actions.

Una "segura" signific — this no to produce. Use zizmor — real "security scanner" that actually performs more deep, more general "static analysis".

Setup

pip install actions-guard-mcp
actions-guard-mcp

No se necesita configación — cada herramient usa el path del archivo o content YAML "direct".

Status

Early build.

License

MIT

Available Tools

2 tools
scan_workflow_contentA

Scan raw GitHub Actions workflow YAML content directly — for a workflow being drafted that isn't written to disk yet.

Inputs: yaml_content (required).

scan_workflow_fileA

Scan a GitHub Actions workflow file on disk for dangerous triggers, template injection, unpinned actions, excessive permissions, and secrets interpolated into shell commands.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools share the same core purpose (security scanning of GitHub Actions workflows) but are clearly differentiated by input source: one takes a file path and the other takes raw content. The descriptions explicitly clarify the difference, so an agent is unlikely to confuse them.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern with a distinguishing suffix: 'scan_workflow_file' and 'scan_workflow_content'. This is clear, predictable, and allows easy selection based on input type.

    Tool Count3/5

    With only two tools, the server feels minimal for a security scanner. While the focus is narrow, the limited surface might be seen as thin, though it covers the primary use cases without being excessive.

    Completeness4/5

    The tool set covers the two main input modes for workflow scanning (file and raw content), which are the most common scenarios. However, it misses other potential inputs like URLs or repository paths, leaving a minor gap for an agent that wants to scan directly from a remote source.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Local-only GitHub Actions and CI maintenance scanner for AI-built apps. Exposes scan, explanation, and fix-planning tools to MCP clients; modifies nothing and makes no outbound requests by default.
      3
      54 npm
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Audits GitHub Actions workflow files for supply-chain risks like script injection, leaked tokens, unpinned actions, and broad permissions.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible AI agents to scan code for leaked secrets, copyleft licenses, unprotected routes, missing privacy policies, and risky card handling before committing or shipping.
      MIT