wiaudit – GitHub Actions to Azure OIDC auditor MCP Server
Fix AADSTS700213 and audit GitHub Actions to Azure OIDC federated credentials. Read-only.
wiaudit – GitHub Actions to Azure OIDC auditor scores 63 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Developer tools, Cloud, Version control. GitHub shows 0 stars. Package registries report about 205 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "wiaudit-wiaudit": { "command": "uvx", "args": [ "wiaudit" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
wiaudit — Workload Identity Auditor for GitHub Actions → Azure
Alpha. Tested on a large production tenant. Feedback and issues welcome.
Docs and troubleshooting guides: wiaudit.github.io/wiaudit
Fix AADSTS700213 and find risky OIDC trust between GitHub Actions and Azure / Microsoft Entra ID.
AADSTS700213: No matching federated identity record found for presented assertion subject
'repo:my-org/my-repo:ref:refs/heads/main'
wiaudit doctor tells you, for every job that uses azure/login, which subject GitHub will send,
whether any federated credential accepts it, and why not (environment vs branch subject, missing
id-token: write, the new immutable owner@id/repo@id format, case mismatch, renamed repo).
wiaudit scan audits every federated credential in the tenant and reports risky trust.
pip install wiaudit
az login
wiaudit collect azure -o azure-snapshot.json --all-subscriptions
wiaudit doctor --azure azure-snapshot.json # run inside your repo
wiaudit scan --azure azure-snapshot.json --format html -o report.html
Typical findings on a real tenant: federated credentials that trust repos on personal GitHub
accounts, wildcard (flexible) credentials without repository_id, pull_request trust on identities
with Contributor/Owner, trust to deleted or renamed repos, identities at the 20-credential limit.
- Read-only. Collectors only list things (
az … list, GraphGET,gh apiGET). wiaudit never creates, changes or deletes anything and never handles credentials — it uses your existingaz/ghlogin. - Offline analysis. Collection writes plain JSON;
scananddoctorwork on those files, so you can collect in one place and analyse anywhere (or hand the JSON to an auditor). - Fast on large tenants: apps are filtered server-side (only those trusting GitHub), one role-assignment query per subscription, automatic retries.
- Outputs: terminal, HTML, JSON, SARIF (GitHub code scanning). CI exit codes.
- GitHub Action for CI and a local MCP server (
wiaudit-mcp), so coding agents (Claude Code, GitHub Copilot, Cursor) can diagnose Azure login failures for you.
Why now
- GitHub now issues immutable OIDC subjects (
repo:OWNER@OWNER_ID/REPO@REPO_ID:…) for repositories created, renamed or transferred on/after 2026‑07‑15. Federated credentials written in the old name‑based format silently stop matching for those repos, and Microsoft recommends migrating. - Name‑based trust to a deleted or renamed repo can be claimed by whoever registers that name again.
- CI identities often hold Owner / Contributor on a whole subscription and trust
pull_requestruns.
Install
pip install wiaudit
# latest from GitHub:
pip install git+https://github.com/wiaudit/wiaudit.git
Requires Python 3.10+, and for collection: Azure CLI (az login) and GitHub CLI (gh auth login).
Quick start
az login
wiaudit collect azure -o azure-snapshot.json # current subscription
# --all-subscriptions | --subscription <id> (repeat) | --app-prefix gh- | --no-apps | --no-managed-identities
wiaudit collect github --from-azure azure-snapshot.json -o repos.json # repo IDs, created date, deleted/renamed
wiaudit scan --azure azure-snapshot.json --github repos.json \
--repo ./my-repo --format html -o report.html \
--allowed-owners my-org,my-other-org # optional: flag every other owner
cd my-repo && wiaudit doctor --azure ../azure-snapshot.json --github ../repos.json
# client-id read from a secret? tell doctor which identity it is:
# wiaudit doctor --azure ../azure-snapshot.json --client-id AZURE_CLIENT_ID=<app-client-id>
Permissions needed to collect: Azure Reader on the subscriptions, and in Entra the ability to read
applications (any member user can by default; Application.Read.All for service principals).
doctor output
[FAIL] .github/workflows/deploy.yml -> job 'deploy'
identity: managedIdentity:mi-new-svc (2222…)
REJECTED: repo:contoso@5544123/new-svc@900001:ref:refs/heads/main
closest credential subject: repo:contoso/new-svc:ref:refs/heads/main
hint: This repo was created, renamed or transferred on/after 2026-07-15, so GitHub sends the
immutable subject … The name-based credentials will not match.
Rules
| ID | Severity* | Finding |
|---|---|---|
| WIA001 | low–high | Name‑based (mutable) GitHub subject; suggests the immutable subject when IDs are known |
| WIA002 | high | Flexible credential with wildcards that does not bind repository_id / repository_owner_id |
| WIA003 | medium–critical | Identity trusts pull_request runs |
| WIA004 | medium–high | Privileged role (Owner, UAA, RBAC Admin, Contributor) at subscription / MG / root scope |
| WIA005 | low | Non‑default audience |
| WIA006 | critical | Trust to a GitHub repo that no longer exists (name can be re‑registered) |
| WIA007 | critical | Trust to a repo's old name after a rename |
| WIA008 | medium | Identity near the 20 federated credentials limit |
| WIA009 | low | Credential from an unrecognised issuer (collect azure --all-issuers) |
| WIA010 | medium–critical | Trust to a repo outside your organizations: owner not in --allowed-owners, or a personal GitHub account |
| WIA011 | info | Review list of all GitHub owners trusted in the tenant |
| WIA101 | critical | pull_request_target workflow with id-token: write |
| WIA102 | low | id-token: write granted at workflow level to several jobs |
| WIA103 | medium | azure/login with a long‑lived creds: secret instead of OIDC |
| WIA104 | medium | azure/login OIDC step without id-token: write |
| WIA201 | high | A workflow job's subject matches no federated credential (would fail at login) |
* Severity is raised when the identity holds privileged roles. wiaudit rules lists them.
CI: GitHub Action
permissions:
contents: read
security-events: write
jobs:
wiaudit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wiaudit/wiaudit@v0
with:
fail-on: critical
# azure-snapshot: audit/azure-snapshot.json # optional, or collect-azure: true after azure/login
Without a snapshot the action checks workflows only (WIA101–104). Findings appear in the Security tab.
MCP server (for AI coding agents)
Listed in the official MCP Registry as io.github.wiaudit/wiaudit. Manual setup:
{ "mcpServers": { "wiaudit": { "command": "uvx", "args": ["wiaudit", "mcp"] } } }
or, with wiaudit already installed: "command": "wiaudit", "args": ["mcp"].
Tools: scan, doctor, list_rules — all read-only, local files only.
Snapshot format
azure-snapshot.json (v1): { version, tenantId, identities: [{ kind: app|managedIdentity, displayName, clientId, objectId, resourceId?, federatedCredentials: [{ name, issuer, subject, audiences, claimsMatchingExpression? }], roleAssignments: [{ role, scope }] }] }. You can generate it yourself
(e.g. from Terraform state) and still use scan / doctor.
FAQ
How do I fix AADSTS700213: No matching federated identity record found?
Run wiaudit doctor in the repository. It prints the exact subject GitHub sends and the closest
credential, e.g. the job has environment: prod so the subject is repo:org/repo:environment:prod,
not …:ref:refs/heads/main. Add a federated credential with that exact subject (matching is exact
and case-sensitive).
azure/login with OIDC stopped working for a new or renamed repo.
Since 2026‑07‑15 GitHub sends the immutable subject repo:OWNER@OWNER_ID/REPO@REPO_ID:… for repos
created, renamed or transferred after that date. Credentials written as repo:OWNER/REPO:… no longer
match. wiaudit doctor detects this and shows the subject to use.
Which federated credentials in my tenant are risky?
wiaudit scan --azure azure-snapshot.json --allowed-owners my-org lists credentials that trust
repos outside your organizations (personal accounts), wildcards without repository_id,
pull_request trust, dangling repos and privileged roles.
Does it need admin rights? No. Reader on the subscriptions and the default ability to read app registrations in Entra ID are enough. Nothing is modified.
Is my data sent anywhere? No. Everything runs locally; there is no telemetry.
Commercial support
Need a one-off audit of your tenant with a remediation plan, organization-wide scanning, or
compliance reports (NIS2 / ISO 27001)? Open a
GitHub Discussion or an issue with the label
commercial.
Limits (v0.1)
- GitHub Actions → Azure only (GitLab, Azure DevOps, AWS/GCP planned).
- Custom OIDC subject templates (
gh api repos/…/actions/oidc/customization/sub) are not yet modelled. - Reusable workflows (
job_workflow_ref) are not yet resolved.
Scan only tenants and repositories you are authorised to assess.
License: Apache‑2.0
Frequently asked questions
What is wiaudit – GitHub Actions to Azure OIDC auditor MCP Server?
Fix AADSTS700213 and audit GitHub Actions to Azure OIDC federated credentials. Read-only.
How do I install wiaudit – GitHub Actions to Azure OIDC auditor MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. wiaudit – GitHub Actions to Azure OIDC auditor MCP Server runs locally from the PyPI package wiaudit with the command uvx wiaudit.
Is wiaudit – GitHub Actions to Azure OIDC auditor MCP Server free and open source?
Yes. wiaudit – GitHub Actions to Azure OIDC auditor MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does wiaudit – GitHub Actions to Azure OIDC auditor MCP Server support remote (HTTP) connections?
No remote endpoint is listed for wiaudit – GitHub Actions to Azure OIDC auditor MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is wiaudit – GitHub Actions to Azure OIDC auditor MCP Server's trust score calculated?
wiaudit – GitHub Actions to Azure OIDC auditor MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.