Study FAQ
How does GitHub Actions authenticate to Azure ML without a client secret?
Also asked as 2
- How do I use OpenID Connect for Azure Machine Learning automation in GitHub Actions?
- What does an Azure ML GitHub Actions workflow need for federated Azure Login?
Answer
Give the workflow a Microsoft Entra application service principal or a user-assigned managed identity with a federated credential for the actual GitHub execution context. Set id-token: write for the login job and use azure/login@v2 with the intended client, tenant, and subscription identifiers. Microsoft recommends supplying those identifiers through GitHub secrets. The exchange uses a short-lived token and does not require a stored Azure client secret.
Verify that the configured repository and branch, environment or other subject match the triggering job. The bootstrap administrator should grant the automation identity the scoped actions it needs. Workspace job submission and creating dependent Azure resources may require different permissions. A successful login identifies the principal. Check the selected subscription, target permissions and runner network path before sending mutating commands.
Microsoft Learn
Full explanation
AI-300: Lab: Automating an ML Workspace with Federated CI
Study guide · AI-300
Read the full explanation