-
Hello! I am part of a team creating content for OSS developers and are trying to provide them with GitHub action workflows that “just work”. However, we have stumbled on a roadblock. Imagine that we have a simple GitHub action as follows:
Nothing special above (and we love that!), you build your image (say So, is anyone aware of a way to create public images within ghcr.io by default? Or perhaps a project setting that enables you to do that? Thank you for the time! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Welcome to the community, @ethan42 🎉 I’ve recategorized your post to our Actions subcategory so it will get better visibility among those able to assist :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
I was able to find a solution through GitHub’s excellent support channel, so posting here in case someone else is interested: When a container package is published using the built-in GitHub Actions workflow token ( For orgs, the ability to publish public container packages must be explicitly enabled using this setting. Users should always be able to publish public container packages, but wasn’t working until a few days ago. You should find this is now fixed. If you run your workflow from a user owned public repo, you should find the published image is automatically public. For org owned public repos, you will need to make sure the |
Beta Was this translation helpful? Give feedback.
I was able to find a solution through GitHub’s excellent support channel, so posting here in case someone else is interested:
When a container package is published using the built-in GitHub Actions workflow token (
${{ secrets.GITHUB_TOKEN }}
), the published package should inherit the visibility of the associated repo.For orgs, the ability to publish public container packages must be explicitly enabled using this setting.
Users should always be able to publish public container packages, but wasn’t working until a few days ago. You should find this is now fixed.
If you run your workflow from a user owned public repo, you should find the published image is automatic…