Skip to content

Is it possible to create public GitHub packages by default for OSS projects? #26700

Answered by ethan42
ethan42 asked this question in Packages
Discussion options

You must be logged in to vote

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Packages Host your dependencies, libraries, and production-ready code, right from your repository
2 participants