question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Username and password not recognized

See original GitHub issue

Behaviour

I’m using this example to authenticate with docker hub, however the build fails with the error. What am I missing? Secrets are set. Both username, password and a PAT - nothing fixes it

Run docker/login-action@v1
  with:
    logout: true
Error: Username and password required

Configuration

name: Publish Docker image
on:
  push:
    tags:
      - v*

jobs:
  push_to_registry:
    name: Push Docker image to Docker Hub
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v2

      - name: Login to DockerHub
        uses: docker/login-action@v1 
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_TOKEN }}
          logout: true

      - name: Push to Docker Hub
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: <removed>:latest

      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

How to fix login error “The username or password is incorrect”?
Press Windows key + I and navigate to the Update & Security. · Open Windows Update section and click Advanced options. · Disable...
Read more >
login does not recognize user name and password
Step 3: In the Automatically sign in dialog, type your password and then re-enter the password to confirm the same. Finally, click OK...
Read more >
I can't log in: username or password not recognised
If you are having trouble logging in, it might be one of several problems. The most common problem is using the wrong email...
Read more >
How to Fix the User Name or Password Is Incorrect
How to Fix the User Name or Password Is Incorrect · 1: Disable Automatic Sign-In Press the Windows Key + S and type...
Read more >
Windows 10 Won't Accept My Password, How to Fix it
When Windows 10 won't accept your password or keeps showing password incorrect error, the first thing is check if your keyboard and mouse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found