AZ commands won't work if run within a docker container
- Dominant language
- TypeScript
- Stars
- 552
- Forks
- 440
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 18
Description
I have successfully logged in to Azure by using OIDC:
```yaml
permissions:
contents: read
id-token: write
[...]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure Azure credentials
uses: azure/login@v1.4.7
with:
client-id: #######
tenant-id: #######
subscription-id: #######
```
and AZ works fine after that step if I run them directly with azure/CLI@v1 or just by typing az commands.
however, if I create a basic github action that uses the docker container mcr.microsoft.com/azure-cli and I try to run commands right after the login, I get:
```shell
ERROR: Please run 'az login' to setup account.
```
what's the trick to run custom github actions that depend on the login? is this action exposing the required ENV VARS which are needed? I know for a fact that my client id has enough permissions since inline az commands works, but that forces me to only use "composite" actions and not Docker actions.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.