Skill 1.3.1
Configure GitHub integration with Machine Learning to enable secure access
Key Concepts
The recommended method is workload identity federation with OpenID Connect (OIDC). A Microsoft Entra app registration or user-assigned managed identity gets a federated credential that trusts tokens issued by GitHub for a specific subject, such as repo:contoso/churn:environment:production. The workflow requests a token (permissions: id-token: write) and the azure/login action exchanges it for an Azure token, so no client secret is stored.
The identity then needs Azure roles: for example AzureML Data Scientist on the workspace to submit jobs and deploy models, or Contributor on a resource group to deploy infrastructure. Storing a service principal secret in a GitHub secret also works, but the secret can expire or leak and must be rotated, so it is the fallback rather than the default.