Organizations shouldn't need personal accounts to pull their own Docker images #213343
🏷️ Discussion TypeBug 💬 Feature/Topic AreaApps BodyI'm trying to use Ansible to provision servers that need to pull private Docker images from GHCR. The obvious solution would be to use a GitHub App, since this is organization-level automation and shouldn't depend on any individual member. But apparently GitHub Apps can't authenticate to GHCR to pull private images, even with read:packages permissions. This leaves us with two options: use a personal access token from an existing member, or create a dedicated machine user and pay for an extra seat just for automation. Neither makes much sense. If the member leaves the organization, their token stops working and deployments break. And having to pay for an extra seat just so our own servers can pull our own images seems like an unnecessary workaround. Isn't this exactly the kind of problem GitHub Apps were created to solve? Organizations should be able to run their own automation independently of individual members, without having to maintain fake user accounts. Are there any plans to support GitHub App installation tokens for private GHCR image pulls? |
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
You're not missing a setting — GitHub Packages only supports authentication with a personal access token (classic), so a GitHub App installation token won't work for GHCR even with |
|
Btw, if anyone's interested, meanwhile I found how to get this working within one organization and Github already supports it within same organization: |
Btw, if anyone's interested, meanwhile I found how to get this working within one organization and Github already supports it within same organization:
Basically when you're trying to create a workflow in repo A that needs to pull a docker image from GHCR that lives on repo B, you go to repo B -> Packages -> Open the package/image -> Package settings -> Manage Actions access -> Add repository -> Add repo A.