I am one of the owners of a Docker Hub organization. We want to start pushing images built on GitHub to one of our repositories on Docker Hub.
The question: how to authenticate?
Of course, we could store the personal access token of one of the org owners as a GitHub secret but that would be totally weird. However, there doesn’t seem to be an option to create an org token or similar.
3
Answers
Confirmed by Docker support that this is currently not possible. Follow-up request: https://github.com/docker/roadmap/issues/461
Docker has support for security scoped tokens to create limited PATs. Unfortunately, that’s a paid feature. You can follow that and see many other linked issues in roadmap issue #115.
I had the same problem. I couldn’t see my organisation’s repos when authenitcating to GitHub from Docker Hub.
I went to the Organisation Settings on GitHub to see if authorisation was approved.
See here and here.