# How does GitHub Actions authenticate to Azure ML without a client secret?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Design and implement an MLOps infrastructure
Updated: 2026-11-25T04:35:31.496705+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-github-oidc-azure-ml.html

## Also asked as

- 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?

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

* [Authenticate to Azure from GitHub Actions by OpenID Connect | Microsoft Learn](https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure-openid-connect)
* [Deploy Bicep files by using GitHub Actions - Azure Resource Manager | Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deploy-github-actions)
* [GitHub Actions for CI/CD - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-github-actions-machine-learning?view=azureml-api-2)

Source: [AI-300: Lab: Automating an ML Workspace with Federated CI](https://learningpathx.com/news/ai-300-lab-automating-an-ml-workspace-with-federated-ci.html)
