Token issuance and role exchange
GitHub can issue an OIDC token to a job with id-token: write permission. The AWS role must trust the GitHub provider for sts:AssumeRoleWithWebIdentity. AWS credentials are a separate resulting session. Token-request permission itself grants no AWS resource actions. For example, a job requests a GitHub JWT, then a reviewed configure-aws-credentials action exchanges it for an AWS role session.
A job requests a GitHub JWT, then a reviewed configure-aws-credentials action exchanges it for an AWS role session.
A deployment job requests an OIDC token from GitHub because it has id-token: write permission. The configured AWS identity provider and role trust policy then determine whether AWS accepts that token for AssumeRoleWithWebIdentity. Successful exchange returns temporary role credentials, which the job uses for separately authorized AWS requests.
OIDC is a federation protocol carrying identity claims. A token is signed identity evidence. A role session is the resulting temporary AWS identity. The token-request permission does not grant S3, ECR, or cluster access by itself. Diagnose issuance, trust exchange, and later resource authorization as three distinct steps. Temporary credentials remove the need to store a permanent access key, but the assumed role may still be too powerful. Pin and review the credential-configuring action, scope its role, and verify account identity without printing the JWT or credential values into logs.
A job requests a GitHub JWT, then a reviewed configure-aws-credentials action exchanges it for an AWS role session.
Do not overlook this operational distinction: Token-request permission itself grants no AWS resource actions.