Workload identity audit
| Severity | Rule | Finding | Count |
|---|---|---|---|
| critical | WIA003 | Identity trusts pull_request workflows | 1 |
| critical | WIA006 | Trust points to a GitHub repository that no longer exists | 1 |
| critical | WIA007 | Trust points to a renamed GitHub repository | 1 |
| critical | WIA101 | pull_request_target workflow can request OIDC tokens | 1 |
| high | WIA001 | GitHub trust uses a mutable, name-based subject | 4 |
| high | WIA004 | Federated identity holds broad privileged role | 2 |
| high | WIA002 | Flexible credential uses wildcards without binding repository_id | 1 |
| medium | WIA010 | Trust to a GitHub repository outside your organizations | 1 |
| medium | WIA103 | azure/login uses a client secret instead of OIDC | 1 |
| medium | WIA104 | azure/login OIDC step without id-token: write | 1 |
| low | WIA005 | Non-default audience on federated credential | 1 |
| low | WIA009 | Federated credential from an unrecognized issuer | 1 |
| low | WIA102 | id-token: write granted to every job in the workflow | 1 |
criticalWIA003 · Identity trusts pull_request workflows
Credential 'pr' accepts tokens from any pull_request run in contoso/payments-api. Anyone who can open a PR from a branch in the repo can act as this identity (Owner on subscription /subscriptions/33333333-3333-3333-3333-333333333333).
criticalWIA006 · Trust points to a GitHub repository that no longer exists
Credential 'main' trusts contoso/legacy-tool, which GitHub reports as not found. If the name is re-registered by someone else, their workflows can get this identity's token (name-based subject).
criticalWIA007 · Trust points to a renamed GitHub repository
Credential 'old-name' trusts the old name contoso/old-api; the repo is now contoso/payments-api. The old name can be registered again by someone else.
criticalWIA101 · pull_request_target workflow can request OIDC tokens
.github/workflows/label.yml runs on pull_request_target and jobs label, report have id-token: write. pull_request_target runs with repository secrets and permissions, so a crafted PR that gets code executed here can obtain cloud tokens.
highWIA001 · GitHub trust uses a mutable, name-based subject
Credential 'pr' trusts 'repo:contoso/payments-api:pull_request'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.
highWIA001 · GitHub trust uses a mutable, name-based subject
Credential 'prod' trusts 'repo:contoso/payments-api:environment:prod'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.
highWIA002 · Flexible credential uses wildcards without binding repository_id
Credential 'any-branch' matches sub with a wildcard (claims['sub'] matches 'repo:contoso/*:ref:refs/heads/*') but does not check repository_id or repository_owner_id.
highWIA004 · Federated identity holds broad privileged role
gh-payments-deploy has 'Owner' at subscription scope (/subscriptions/33333333-3333-3333-3333-333333333333). Anyone who can satisfy one of its federated credentials gets this access.
mediumWIA004 · Federated identity holds broad privileged role
gh-legacy-tool has 'Contributor' at subscription scope (/subscriptions/33333333-3333-3333-3333-333333333333). Anyone who can satisfy one of its federated credentials gets this access.
mediumWIA010 · Trust to a GitHub repository outside your organizations
Credential 'jdoe-fork' trusts jdoe-dev/reporting-tools: owner 'jdoe-dev' is not in your allowed GitHub owners. Personal and external accounts are outside your org's SSO, policies and offboarding; whoever controls that repo can act as this identity (no broad privileged roles found).
mediumWIA103 · azure/login uses a client secret instead of OIDC
Job 'old' in .github/workflows/legacy.yml logs in with `creds:` (a long-lived client secret).
mediumWIA104 · azure/login OIDC step without id-token: write
Job 'plan' in .github/workflows/pr.yml uses azure/login with OIDC but cannot request a token: no permissions block exists, and default token permissions never include id-token.
WIA001 · GitHub trust uses a mutable, name-based subject (2 low)
lowWIA001 · GitHub trust uses a mutable, name-based subject
Credential 'jdoe-fork' trusts 'repo:jdoe-dev/reporting-tools:ref:refs/heads/main'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.
lowWIA001 · GitHub trust uses a mutable, name-based subject
Credential 'main' trusts 'repo:contoso/new-svc:ref:refs/heads/main'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.
WIA005 · Non-default audience on federated credential (1 low)
lowWIA005 · Non-default audience on federated credential
Credential 'custom-aud' accepts audiences ['custom-audience'] instead of api://AzureADTokenExchange.
WIA009 · Federated credential from an unrecognized issuer (1 low)
lowWIA009 · Federated credential from an unrecognized issuer
Credential 'partner' trusts issuer https://oidc.partner-ci.example.net.
WIA102 · id-token: write granted to every job in the workflow (1 low)
lowWIA102 · id-token: write granted to every job in the workflow
.github/workflows/label.yml sets id-token: write at workflow level; jobs label, report inherit it even if they never log in to the cloud.