Open-source CLI

Detection reference

The OIDC trust-policy misconfigurations the open-source oidc-audit CLI detects in GitHub Actions roles — what each finding means, and how to fix it.

The open-source oidc-audit CLI scans AWS IAM roles for GitHub Actions OIDC trust-policy misconfigurations. Each finding below is severity-rated; use --severity to filter the output.

FindingWhat it detectsSeverity
MISSING_SUB_CLAIMTrust policy has no sub condition — any GitHub repo can assume the roleCRITICAL
WILDCARD_SUB_CLAIMOverly permissive wildcard in the sub claim (*, repo:*) — matches unintended repositoriesCRITICAL
MISSING_AUD_CLAIMNo aud condition — tokens minted for any OIDC client are acceptedHIGH
ORG_WIDE_TRUSTsub allows any repository in an organization (repo:myorg/*)HIGH
PULL_REQUEST_ALLOWEDAllows pull_request events, so a fork PR can mint a token and assume the roleHIGH
FORKED_REPO_ALLOWEDMay allow forked repositoriesHIGH
REF_TYPE_MISSINGNo branch/tag restriction in the sub claimMEDIUM
ENVIRONMENT_NOT_REQUIREDNo GitHub Environment requirement, bypassing protection rules and required reviewersMEDIUM
WORKFLOW_NOT_PINNEDNot pinned to a specific workflow fileMEDIUM
ACTOR_NOT_RESTRICTEDNo actor/user restrictionLOW

Vulnerable policy example

// ❌ Any repo can assume this role
"Condition": { "StringLike": {
  "token.actions.githubusercontent.com:sub": "repo:*:*"
} }

Fixed policy example

// ✓ Only your repo, only your branch
"Condition": { "StringEquals": {
  "token.actions.githubusercontent.com:sub": "repo:myorg/myrepo:ref:refs/heads/main"
} }

The full TrustFix platform detects a much wider range of NHI and agent-identity risk — over-privileged CI/CD and AI-agent roles, cross-account trust, static credentials, toxic combinations, and more — and proves a fix is safe before opening a PR. See what TrustFix is.