You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Agentic Workflows currently make it difficult to execute Azure and Azure DevOps CLI/API operations from within a Copilot workflow step.
In our workflows, we want to include steps that run CLI commands (for example, Azure CLI or Azure DevOps commands) as part of the Copilot workflow execution. While we can authenticate the runner environment using managed identity via the GitHub Action azure/login@v2, this authentication context is not available inside the Copilot CLI execution environment.
As a result, Copilot workflow steps are unable to access Azure or Azure DevOps APIs even though the runner itself is already authenticated.
Current Workaround
As part of a proof of concept, we implemented the following workaround:
Generate an OIDC token during the runner setup
Write the token to a file under /tmp
Expose the file path via an environment variable
Re-authenticate inside the Copilot CLI execution using the OIDC token so that CLI commands can access Azure and Azure DevOps
While this approach works, it is:
Complex and error-prone
Difficult to standardize across workflows
Not intuitive for users adopting GitHub Agentic Workflows
Feature Request
Provide a first-class mechanism to transfer authentication context (for example, Azure managed identity or OIDC-based authentication) from the runner environment into the Copilot CLI execution environment.
This capability already exists in the GitHub Coding Agent, which we are using today to run authenticated CLI commands that integrate with Azure DevOps. Having similar support in GitHub Agentic Workflows would enable many additional workflow scenarios and significantly reduce complexity.
Expected Outcome
Copilot workflow steps can seamlessly reuse authentication established by the runner (for example, via azure/login@v2)
No manual token generation or file-based token passing is required
Parity with GitHub Coding Agent behavior for authenticated CLI execution
This enhancement would make GitHub Agentic Workflows much easier to adopt for Azure- and Azure DevOps–integrated automation scenarios.
Do you know where is the az auth context stored at in the runner? the copilot CLI is running in a sandbox and may or may not have access to that directory.
Activity
Mossaka commentedon Feb 27, 2026
Have you added Azure network domains to the allowdomains in the frontmatter of your agentic workflow? https://github.github.com/gh-aw/reference/network
praveenkuttappan commentedon Feb 27, 2026
Yes. I have added the frontmatter to allow network list. Is the
az clistatus on the runner image available in copilot cli step?Mossaka commentedon Mar 10, 2026
Do you know where is the az auth context stored at in the runner? the copilot CLI is running in a sandbox and may or may not have access to that directory.
pelikhan commentedon Mar 13, 2026
@praveenkuttappan