Free plan Signups are open now. The full audytx engine — Terraform and CloudFormation — is live. The Free plan is 100 scans a month and stays free — paid tiers arrive Nov 01, 2026 from $20/month for unlimited repositories. Try it on your own code.

GitHub OIDC federated role allows assumption from any GitHub repository

AWS_IAM_008 CRITICAL Security

What it checks

GitHub OIDC federated role allows assumption from any GitHub repository

Where it applies

Terraform: aws_iam_role

CloudFormation: AWS::IAM::Role

How to fix it

  1. Replace the wildcard account ("repo:*", or a prefix such as "repo:my-org*") with the full repository path that should deploy: "repo:my-org/my-repo:*". This scopes the trust to a single repository. Write the account name out in full — a prefix still matches other accounts.
  2. Optionally add a StringEquals condition on the ref ("repo:my-org/my-repo:ref:refs/heads/main") to restrict to a specific branch.

Frameworks

These mappings are advisory, not an attestation of compliance.

Vendor documentation

All rules