Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to publish an anonymous docker container #6

Closed
bsergean opened this issue Sep 2, 2020 · 3 comments
Closed

Failure to publish an anonymous docker container #6

bsergean opened this issue Sep 2, 2020 · 3 comments

Comments

@bsergean
Copy link

bsergean commented Sep 2, 2020

Hi there,

I'm trying to setup something for an open-source library hosted on my company space. I am getting an error though when my action runs at the login step, talking about a missing password.

 Login to GitHub Package Registry
0s
    logout: true
Run docker/login-action@v1
  with:
    registry: ghcr.io
    username: machinezone
    logout: true
##[error]Input required and not supplied: password

I used this, hoping that the secret would be populated, following this blog post.

        name: Login to GitHub Package Registry
        uses: docker/login-action@v1
        with:
          registry: ghcr.io
          username: ${{ github.repository_owner }}
          password: ${{ secrets.GHCR_TOKEN }}

The full yaml for the github action is here.

Any clue on what might be going on ?
Should I report that on the github login action instead maybe ... ?

@crazy-max
Copy link
Member

crazy-max commented Sep 3, 2020

@bsergean You have to create a GitHub PAT as explained in the README. Have been tested in this workflow.

image

https://github.com/crazy-max/docker-login-action/runs/1069446285?check_suite_focus=true#step:3:8

@dryleaf
Copy link

dryleaf commented Dec 2, 2020

I have added the action on my workflow:

- name: Login to GitHub Container Registry
  uses: docker/login-action@v1
  with:
    registry: ghcr.io
    username: ${{ github.repository_owner }}
    password: ${{ secrets.CR_PAT }}
  • The secrets.CR_PAT is configured and works normally on my local environment.

I get the following error:

Run docker/login-action@v1
  with:
    registry: ghcr.io
    username: dryleaf
    logout: true
  env:
    IMAGE_NAME: oauth
Error: Username and password required

I can't seem to find the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants