-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Doesn't work with Docker Hub access tokens #10
Comments
Yes, unfortunately, DockerHub don't support access tokens for this API at the moment. There is a note about this in the readme.
|
My bad, i didn't read the documentation since they introduced the access tokens. Thanks! |
No worries. I hope they open up the API for use with tokens at some point! |
O damn, I've hit this. Has anyone found somewhere we can request support for this? |
@cooperlees This is the issue tracking the roadmap feature to allow tokens to be used. docker/roadmap#115 |
Could we possibly leave this open so people see it's a known issue? It will possibly help stop duplicate issues being logged. |
It's not like the tokens are any different than passwords anyways. Tokens have absolutely no scope attached to them. Docker has needed to step up their game with this stuff for years. |
Until peter-evans/dockerhub-description#10 is fixed Signed-off-by: Luca Bognolo <git@bogny.eu>
- Dockerhub API does not support tokens peter-evans/dockerhub-description#10
* Using meta action * Fix tag * No description update action. See peter-evans/dockerhub-description/issues/10
…ion#10 Signed-off-by: Robert Seedorff <Robert.Seedorff@iteratec.com>
Thanks for confirming! I think we can close this now. |
Hi! FYI, I did not manage to make this work with a |
See: peter-evans/dockerhub-description#10 Not mandatory but good to implement IMO: * create a Docker Hub token (needs read/write/delete rights) * replace DOCKER_PASSWORD with DOCKER_TOKEN in GH actions secrets. * eventually add 2FA authentication on Docker Hub (it was not possible because of that). While here, bump GitHub Actions versions.
See: peter-evans/dockerhub-description#10 Bump GH actions versions.
I hate to wake this old thread up, but I figured it was the best place to keep this discussion organized. Today I am running into this error. No changes were made on my end and it just started to appear this morning (I have a job run every Tuesday to automatically update). Error Message
Full screenshotAttempted fix (same failing result)
Possible error to help debug?
My source codeOther notes & thanks
I'm very grateful for this project! Thank you for putting this together. If anyone has any ideas, it would be very appreciated 🙌 |
@jaydrogers I just tried to update and it worked see https://github.com/simmel/vanilla-imap-baby/actions/runs/4177535798/jobs/7235219564#step:8:1 Try again? Might have just been Docker Hubs API that had an issue? |
Thanks @simmel! I just tried it again, and I am getting the same results. I can move this into a new issue if it's more appropriate 😃 |
Hi @jaydrogers Here are my 2 cents. The error hints at a bad HTTP request (
|
Hi @jaydrogers And 2 cents more Just a last thing, have you tried the running the Docker image outside of the context of GHA, as outlined in the README? |
Thanks @jonasbn! Brilliant method with the Docker testing. 👍 I attempted to run what was in the README and I am just getting nothing in return. I had some warnings running with my M1 Mac, so I modified the command to see if that would help. I also tried to set environment variables to put Node into a debug mode to see if I can see the request. Command I am runningI am running this in the directory of my README file on my Mac. docker run --platform linux/amd64 -v $(pwd):/workspace \
-e DOCKERHUB_USERNAME='mydockerhubusername' \
-e DOCKERHUB_PASSWORD='mysupersecretpat' \
-e DOCKERHUB_REPOSITORY='serversideup/php' \
-e README_FILEPATH='/workspace/README.md' \
-e NODE_ENV=dev \
-e DEBUG=* \
peterevans/dockerhub-description:3 My results after running command aboveThe command runs and returns no output. When I run Things I have checked
Thanks for your help everyone! 🙌 |
@jaydrogers It's possible that DockerHub doesn't like the content of your readme. Could you try a test where the |
Yup! That's definitely it. Sorry for the confusion! I thought it had something to do with my PAT. Weird thing is, if I copy and paste it into hub.docker.com, it works no problem. I even tried pasting it into hub.docker.com then copying that into my README and it still would not take it. If there are any quick thoughts to trace the down the culprit, I am open ears -- but I am working on a documentation site anyways so it will greatly simplify my README in the future anyways. I can open another issue on it in the future if I run into problems. Thanks for your help 🙌 |
Report this to Docker Hub (somehow). It's their API saying "nah, user
input is wrong".
Good job finding the problem!
…On Wed, 2023-02-15 at 08:10:49 -0800, Jay Rogers wrote:
Yup! That's definitely it. Sorry for the confusion! I thought it had something to do with my PAT.
Weird thing is, if I copy and paste it into hub.docker.com, it works no problem.
I even tried pasting it into hub.docker.com then copying that into my README and it still would not take it.
If there are any quick thoughts to trace the down the culprit, I am open ears -- but I am working on a documentation site anyways so it will greatly simplify my README in the future anyways.
I can open another issue on it in the future if I run into problems.
Thanks for your help 🙌
--
Reply to this email directly or view it on GitHub:
#10 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
@jaydrogers do you get the same error when you try to upload your repo description using this tool? |
I'm still getting the "Forbidden" error on the PATCH request. I triple-checked all repository names and even tried running exactly the same API requests in Python -- but no matter what I keep getting 403 |
@LeviPesin As the error message suggests, the problem is likely to be insufficient scopes. It requires |
Ah, sorry, indeed!! My token only had read/write permissions. Thank you! |
Hello,
i tried using this with the recently introduced DockerHub access tokens, but it doesn't work. I swapped my credentials for my own Docker Hub and it works again.
If i check the Docker Hub access tokens page, i see that the access token was never used.
When using the access token i get an error 403 on the PATCH request.
The text was updated successfully, but these errors were encountered: