Need Docker Hub Credentials added to GitHub

9 views
Skip to first unread message

Matt Raible

unread,
Dec 5, 2025, 8:53:32 PMDec 5
to JHipster dev team
Hi all,

When I tried to release JHipster v.9.0.0-beta today, publishing the Docker image failed:


My guess is this is because Pascal’s credentials are stored as secrets in our GitHub repo and he probably changed them. Can one of you that has access update the Docker Hub secrets in https://github.com/jhipster/generator-jhipster/settings/secrets/actions

Thanks!

Matt

Julien Dubois

unread,
Dec 6, 2025, 1:34:12 AMDec 6
to Matt Raible, JHipster dev team
Hey Matt,

Sorry I’m with my phone and the different websites are not mobile friendly!
I created a new token that has push access to "jhipster" on the Docker Hub JHipster org, I hope that’s the right image!
I added this token to the DOCKERHUB_TOKEN secret on our GitHub Actions.
I hope this works!

Julien Dubois



--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jhipster-dev/2FEC9633-1AB0-46DE-B412-FB3A836E6CE0%40raibledesigns.com.

Matt Raible

unread,
Dec 6, 2025, 2:39:41 AMDec 6
to Julien Dubois, JHipster dev team
Unfortunately, it does not solve the problem. There’s a username variable too, perhaps that needs to be updated too? 

Matt Raible

unread,
Dec 6, 2025, 2:50:28 AMDec 6
to Julien Dubois, JHipster dev team
I tried changing it to your username on Docker Hub, but it still fails. 

Julien Dubois

unread,
Dec 6, 2025, 4:13:28 AMDec 6
to Matt Raible, JHipster dev team
I’m guessing we were using someone’s login/password, instead of a repository token, which isn’t good…

- I’ve given write access to all repos in the JHipster Docker Hub to the current token, in case that’s the issue
- I’ve changed the username secret to “jhipster”, I believe that would be the correct one

-> could you try again? Otherwise we need to update the login process in the action, but that would need a new release, I guess?

Matt Raible

unread,
Dec 6, 2025, 11:12:45 AMDec 6
to Julien Dubois, JHipster dev team
Log in works now! However, the token needs additional scopes:

Error: buildx failed with: ERROR: failed to build: failed to solve: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Adocker%2Fdockerfile%3Apull&service=registry.docker.io: 401 Unauthorized: access token has insufficient scopes

Julien Dubois

unread,
Dec 6, 2025, 11:16:53 AMDec 6
to Matt Raible, JHipster dev team
Oh it might be because it didn’t have the permission to read public images (no idea why this isn’t by default), can you try again?

Julien Dubois

Matt Raible

unread,
Dec 6, 2025, 11:40:50 AMDec 6
to Julien Dubois, JHipster dev team
That worked! 🎉

Julien Dubois

unread,
Dec 6, 2025, 12:12:00 PMDec 6
to Matt Raible, JHipster dev team
Awesome, thanks!
Reply all
Reply to author
Forward
0 new messages