A matching GitHub branch credential
A GitHub main-branch assertion has the issuer, subject, and audience configured on the branch credential.
All three values match this branch credential. If a live exchange fails, check the target application, credential propagation, and assertion signature.
Inputs and expected values
- Paste Claims JSON into OIDC token or claims JSON.
- Paste Credential JSON into Federated credential JSON.
- Select Compare credentials and read the issuer, subject, and audience results.
- Claims JSON
{ "iss": "https://token.actions.githubusercontent.com", "sub": "repo:example/project:ref:refs/heads/main", "aud": "api://AzureADTokenExchange" }- Credential JSON
{ "name": "github-main", "issuer": "https://token.actions.githubusercontent.com", "subject": "repo:example/project:ref:refs/heads/main", "audiences": ["api://AzureADTokenExchange"] }- Issuer matches
true- Subject matches
true- Audience matches
true