Add support for a custom az-path - #559
Conversation
|
Hi Craig Duncan (@duncan3dc), thank you for your contribution. I appreciate this feature. But I would prefer setting it as an environment variable rather than using a parameter. Yan Xu (@YanaXu) For consistency, should we consider whether Azure PowerShell will also require a custom path? |
|
vại tương lơ . Cấm mọi quyền cả admins( nguyên ; Nguyễn ...)
phát hiện ban vĩnh viễn
Vào Thứ 6, 6 thg 3, 2026 lúc 20:06 Mattias Vinberg ***@***.***>
đã viết:
… ***@***.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
<#559 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BSDHOMFEIRD7TEDSEUP7JB34PLENRAVCNFSM6AAAAACI2RT57OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTSMBTGYZDENZRGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
What this PR seems to address looks achievable two ways today without a new input:
oidc_token=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | jq -r '.value')
docker exec ci az login --service-principal \
--username "$AZURE_CLIENT_ID" --tenant "$AZURE_TENANT_ID" --federated-token "$oidc_token"
Is there a scenario neither of these covers? On the consistency point: a per-tool path override doesn't scale well. If we add it for the CLI, we'd want an equivalent for Azure PowerShell, and the two store their context differently, so we'd end up maintaining two parallel overrides. Sharing the credential/context location instead covers both If there's a real gap, it might be cleanest to capture it as a feature request or PR framed around the shared credential/context location, which works for CLI and PowerShell together. |
In some of our workflows we use docker containers to ensure we've got a consistent environment. We use this action to authenticate with OIDC, but this action assumes the
azCLI is running on the GitHub actions machine.This PR allows a custom
azpath to be specified, so that we can authenticate inside the docker container, and then run our followingazcommands in there.For example: