Azure / Azure/docker-login

Invalid clientid or client secret

Open
#46 3 comments 4 reactions 0 assignees View on GitHub
need-to-triage
Dominant language
TypeScript
Stars
117
Forks
58
PR merge metrics
No merged PRs in 30d

Description

I suddenly get errors when pushing new docker containers to azure container registry with:
```
unauthorized: Invalid clientid or client secret.
Error: Process completed with exit code 1.
```

It was working fine for exactly a year but started breaking today, so I guess something expired.

My Github Action can be seen below. It fails on the `build nlp api` step but it seems to pass the login step:
image

What since it passes the login step, I don't get what has expired to cause the issue?

```
on: [push]
name: Build a Docker image and Push it to ACR
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel

- name: Update requirements.txt for Docker image
run: |
pipenv requirements > requirements.txt

# build nlp api
- run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/nlpapi:${{ github.sha }}
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/nlpapi:${{ github.sha }}
# release version
ref=${{ github.ref_name }}
tag=${ref////-}
echo $tag
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/nlpapi:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/nlpapi:$tag
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/nlpapi:$tag
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.