workflowlint-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@workflowlint-mcp Audit my GitHub Actions workflows and preview safe fixes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
workflowlint-mcp
An MCP server that lets an AI audit GitHub Actions workflows: security and correctness findings with a
rule ID, severity, file:line (exact even inside multi-line run: | blocks) and a concrete fix, plus a cron
explainer with the next run times, a needs graph with critical path, a least-privilege permissions review,
a commit-SHA pin plan and a diff of the safe automatic fixes. It is read-only, offline by default, and needs
no external binary.
How it differs from what exists. The GitHub Actions MCP servers I could find either wrap
actionlint (a Go binary you must install; it
checks syntax and shell, not supply-chain risk) or are hosted scanners such as
github-actions-audit and
github-actions-audit-mcp, which
report findings but do not explain schedules, draw job graphs, review token permissions, or produce
patches. This server is pure Python (mcp + pyyaml), runs locally, and adds: a position-aware YAML model
(so on: is not the boolean True, 3.10 is flagged, anchors resolve, and every finding has a real line),
script-injection analysis that knows the dangerous github.event.* contexts, a built-in cron engine, a
fix_preview that proves each patch by re-linting it, and an opt-in online SHA resolver that talks to
api.github.com only.
Install
Claude Code:
claude mcp add workflowlint -- uvx workflowlint-mcp --dir .Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"workflowlint": {
"command": "uvx",
"args": ["workflowlint-mcp", "--dir", "C:\\path\\to\\your\\repo"]
}
}
}Without uv: pip install workflowlint-mcp, then run workflowlint-mcp --dir /path/to/repo.
Flag | Meaning |
| Only files inside this directory can be read (default: the current directory). |
| Comma-separated rule ids to turn off, e.g. |
(There is also an undocumented --github-api-url flag that tests use to point the online pin lookup at a
local fake server. It is a server flag, not a tool argument, so a model cannot use it.)
Silence one finding in the file itself with a comment on the line above it (or at the end of the line):
# workflowlint-ignore: GHA1001, GHA1003
- uses: some/action@v1Related MCP server: github-actions-audit
Tools
Tool | What it does |
| Workflows, triggers, jobs, runners, |
| 33 rules (GHA1001-GHA1033) with severity, |
| When each workflow runs, in plain English. Cron expressions are explained with the next 5 run times in UTC from a built-in cron engine (including the day-of-month/day-of-week OR rule), plus notes on congestion, the 5-minute minimum, default-branch-only schedules and the 60-day inactivity shutdown. |
| Effective |
| The |
| Every |
| Unified diff of the safe fixes: read-only |
path is a workflow file, a repository root containing .github/workflows, or the workflows directory,
relative to --dir or absolute inside it. Local composite actions (.github/actions/**/action.yml) are included.
Try asking
"Audit my GitHub Actions workflows and fix everything that is safe."
"Is any workflow vulnerable to script injection or a pwn request?"
"Which actions are not pinned to a commit SHA? Look the SHAs up." (
online=true; setGITHUB_TOKENto avoid the 60 requests/hour limit)"When does the nightly workflow run next? Why did it not run last week?"
"What permissions does each job really need? Give me a least-privilege
permissions:block.""Draw the job graph for the release workflow and tell me the critical path."
"Review my reusable workflow call: do the inputs and secrets match?"
Rules
ID | Severity | Rule |
GHA1000 | error | file is not valid YAML (reported with its line instead of failing) |
GHA1001 | error / warning / info | action is not pinned to a full commit SHA (third-party branch = error, third-party tag = warning, |
GHA1002 | error |
|
GHA1003 | error | untrusted expression expanded inside |
GHA1004 | warning | no |
GHA1005 | error |
|
GHA1006 | warning |
|
GHA1007 | warning / error | secret printed or interpolated into a command line |
GHA1008 | warning | downloads and executes a script in one step ( |
GHA1009 | warning / info | checkout leaves the token in |
GHA1010 | warning | self-hosted runner reachable from pull requests or other outsider events |
GHA1011 | warning / error | deprecated workflow command ( |
GHA1012 | error |
|
GHA1013 | info | job has no |
GHA1014 | info | deploy-like job without a concurrency group |
GHA1015 | error |
|
GHA1016 | error |
|
GHA1017 | error |
|
GHA1018 | error | unknown context in an expression |
GHA1019 | warning | misspelled |
GHA1020 | error | matrix is empty or larger than 256 jobs |
GHA1021 | info | runner label tracks |
GHA1022 | error | call does not match the reusable workflow's inputs/secrets (same repository) |
GHA1023 | error / warning | retired or deprecated action version (dated table) |
GHA1024 | error | upload-artifact and download-artifact majors are incompatible |
GHA1025 | warning | cache key has no content hash |
GHA1026 | warning / info |
|
GHA1027 | error | structure problem: missing |
GHA1028 | warning | unquoted version number loses its trailing zero ( |
GHA1029 | error | invalid cron expression in |
GHA1030 | info | schedule at minute 0 or more often than every 5 minutes |
GHA1031 | error | composite action |
GHA1032 | info | job is granted write access it does not appear to use |
GHA1033 | error | duplicate mapping key |
The injection contexts checked by GHA1003 are the documented attacker-writable fields: issue, pull request,
discussion, comment and review titles and bodies; pull_request.head.ref/label/repo.*; commit messages and
author/committer names and emails (head_commit, commits[*], workflow_run.head_commit); head_branch
and display_title of a workflow run; release name/body/tag; client_payload.*; github.head_ref. Workflow
inputs and github.ref_name are reported as warnings (the person who starts the run chooses them).
Security
Read-only. No tool writes a file or runs a command.
fix_previewandpin_actions_planreturn text.Sandboxed. Every path is resolved (symlinks included) and must stay inside
--dir. Files are capped at 1 MB and 20,000 lines and must be UTF-8.YAML is parsed safely. Only PyYAML's composer is used (no object construction, no tags executed). Alias expansion is capped at 100,000 nodes and 20 MB of text, nesting at 60 levels, so alias bombs become a finding, not a hang.
Secrets: names only. Findings and overviews show
secrets.NAME, never a value. As a last line of defence every output passes through a redactor that masks well-known token formats,://user:pass@URLs andpassword: literallines, so a literal secret in a diff context line is not repeated to the model.The network is off by default.
pin_actions_plan(online=true)contacts exactly one host,api.github.com(validated owner/repo/ref characters, 10 s timeout, redirects only to the same host, at most 60 lookups per call, results cached). IfGITHUB_TOKENis set in the server's environment it is sent only as theAuthorizationheader to that host and is never printed. Rate limits are reported honestly with the reset time.
Limits you should know about
It reads files; it cannot see repository settings (default token permissions, branch protection, whether the repository is public). Findings about those are review prompts.
The retired-action table, the
ubuntu-latestmapping and thegithub.eventproperty table are snapshots (the output says "as of 2025-12" where it matters). Newer deprecations are not in them.The permissions inference knows a few dozen popular actions and
gh/gitcommands. When a job uses anything else it says the inference is partial and does not guess.Reusable-workflow checks cover callees in the same repository only.
Development
uv sync --extra test
uv run pytest
uv run ruff check src tests && uv run mypy --strict srcMIT licensed.
Available Tools
7 toolsexplain_triggersB
Explain in plain English when each workflow runs: push/PR filters, which pull request types, fork
behaviour, manual inputs, reusable-workflow interface, workflow_run chains, and schedule cron
expressions explained with the next 5 run times in UTC (computed by a built-in cron implementation,
including the day-of-month OR day-of-week rule). Flags congested schedules (minute 0), intervals under
5 minutes, and reminds that scheduled workflows run only on the default branch and are disabled after
60 days of repository inactivity.
Inputs: path (required). Returns: result
fix_previewA
Show a unified diff of the safe automatic fixes for a workflow file (or every workflow under a
directory): add a top-level permissions: contents: read when every job is recognised as read-only,
move injectable ${{ github.event.* }} expressions out of run: scripts into step env: variables,
and replace ::set-output with $GITHUB_OUTPUT. The patched text is re-linted to prove the findings
disappear and none are introduced. Never writes the file: apply the diff yourself. Lists what needs a
manual change.
Inputs: path (required). Returns: result
job_graphB
Draw each workflow's job needs: graph as text and as a Mermaid diagram, group jobs into waves
that can run in parallel, and show the critical path (longest dependency chain) plus a worst-case
duration bound from timeout-minutes. Reports cycles.
Inputs: path. Returns: result
lint_workflowsA
Lint workflows and composite actions with 33 rules (GHA1001-GHA1033). Each finding has a rule id,
severity (error/warning/info), file:line (exact line inside multi-line run: | blocks), an
explanation and a concrete fix. Covers: actions not pinned to a commit SHA, pwn requests
(pull_request_target / workflow_run + checkout of PR code), script injection through
github.event.* / head_ref / inputs inside run: or github-script, missing or write-all permissions,
secrets: inherit, secrets echoed or on command lines, curl | bash, checkout credentials left behind,
self-hosted runners on PR triggers, deprecated commands (set-output, set-env), timeouts, concurrency,
needs mistakes and cycles, always-true if: expressions, unknown/misspelled contexts, matrix size,
reusable-workflow input/secret mismatches, retired action versions (dated table), cache keys,
continue-on-error, unquoted 3.10 versions, invalid cron. Suppress with
# workflowlint-ignore: GHA1003 above the line. Never modifies anything.
Inputs: path. Returns: result
permissions_reviewA
Show the effective GITHUB_TOKEN permissions of every job (job-level replaces workflow-level; absent
means the repository default), infer what each job actually needs from the actions and gh/git commands
it uses, flag write access that looks unnecessary and permissions that are missing, and print a
least-privilege permissions: block per job. The inference is heuristic and says when it is partial.
Inputs: path. Returns: result
pin_actions_planA
List every uses: that is not pinned to a full commit SHA (grouped by action version, with
file:line) and how to pin each. With online=false (default) nothing touches the network and you get
git ls-remote instructions. With online=true each tag or branch is resolved to its commit SHA through
api.github.com only (annotated tags are dereferenced; results cached; honest rate-limit messages; an
optional GITHUB_TOKEN in the server's environment raises the limit and is sent only to that host).
Output is a plan as text: nothing is written.
Inputs: path, online. Returns: result
workflows_overviewA
Summarize GitHub Actions workflows: triggers, jobs with runners and needs, permissions per job,
every action used (version, whether pinned to a commit SHA), environments, and the NAMES of the secrets
each job references (values are never read). Also covers local composite actions under .github/actions.
path is a workflow file, a repo root containing .github/workflows, or the workflows directory.
Invalid YAML is reported with its line instead of failing. Start here.
Inputs: path. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a recognizable specialization: summary, rule-based linting, trigger explanation, token permissions, job dependency graph, action pinning, and fix diffs. There is mild overlap where workflows_overview already reports permissions and pinned/unpinned actions that permissions_review and pin_actions_plan dig into, and lint_workflows also flags unpinned actions and permission issues. The descriptions make clear which is the deep-dive versus the summary, so misselection is unlikely but not impossible.
All names are snake_case and readable, but the verb/noun ordering is inconsistent: verb_noun in lint_workflows, explain_triggers, pin_actions_plan, fix_preview, versus noun_verb in workflows_overview and permissions_review, plus the bare noun job_graph. An agent can still infer behavior, but there is no single predictable pattern.
Seven tools is well within the ideal range and each one maps to a distinct analysis concern of a GitHub Actions auditing server. No tool feels redundant padding or conspicuously absent from the set.
The surface covers the full read-only audit lifecycle: inventory, linting, trigger semantics, permissions, dependency graph, pinning plan, and a fix diff with re-lint verification. The main gap is that fix_preview never applies changes and there is no write/apply tool, so remediation is a manual dead end by design; cross-file or multi-repo bulk analysis is also absent. These are workaroundable but limit end-to-end automation.
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.371 npm2MIT
- FlicenseNot gradedqualityDmaintenanceAudits GitHub Actions workflow files for supply-chain risks like script injection, leaked tokens, unpinned actions, and broad permissions.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to run deterministic, read-only local repository audits for risky GitHub workflows, undocumented environment variables, possible credentials, and conflicting dependency configuration, returning structured findings without sending source code to a service.43 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to run local, read-only audits that detect risky GitHub workflows, undocumented environment variables, possible credentials, and conflicting dependency configuration before merging.MIT