Codespaces does not expose GitHub OIDC tokens (ACTIONS_ID_TOKEN_*), blocking Azure workload identity federation #191918
Replies: 1 comment
-
|
hey @andrescodas 1. Is this an intentional limitation?Yes, it is effectively a current platform boundary. GitHub OIDC was specifically architected for Actions workflows to provide short-lived tokens containing specific claims about a repository, branch, or job run. Because Codespaces is a persistent development environment rather than a discrete workflow run, it lacks the same automatic "per-run" token injection mechanism found in the CI/CD pipeline. [1, 2, 4, 5] 2. Recommended Secretless Azure Patterns for CodespacesSince native Workload Identity Federation (OIDC) is blocked by the missing variables, use these alternatives for secretless auth:
3. OIDC Parity RoadmapThere is no publicly committed date for full "OIDC parity" between Actions and Codespaces in official GitHub documentation. However, the community and enterprise users are actively advocating for dedicated service tags or improved identity federation to bridge this gap. [8] Pls mark as accepted answer if this helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
Body
Problem
GitHub Codespaces does not expose GitHub OIDC token environment variables
(
ACTIONS_ID_TOKEN_REQUEST_URL,ACTIONS_ID_TOKEN_REQUEST_TOKEN).This makes Azure workload identity federation (OIDC) impossible from Codespaces,
even when Azure is correctly configured with federated credentials
(app registration or user‑assigned managed identity).
The same repository and identity work correctly in GitHub Actions.
Impact
This blocks:
az login --identityThis is relevant for enterprise orgs that prohibit secrets
in dev environments.
Question
Is this an intentional limitation of Codespaces?
If so, what is the recommended Azure authentication pattern for Codespaces, without secrets?
If not, is OIDC parity with Actions on the roadmap?
Beta Was this translation helpful? Give feedback.
All reactions