Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

OIDC to Azure/GCP fails: `AADSTS70021: No matching federated identity record found`.

IntermediateTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Federated credential subject does not match the workflow's sub (branch, environment, PR).

Diagnose → Compare the token subject with the federated credential's subject.

Fix → Create a federated credential for the right entity type (environment/branch).

Prevent → Use environments for consistent sub claims.

All CI/CD questions

More on Secrets, Security and Pipeline Performance