Skip to content

Link the ghcr package to the repo via the OCI source label - #3

Draft
lllamnyp wants to merge 1 commit into
mainfrom
chore/oci-source-label
Draft

Link the ghcr package to the repo via the OCI source label#3
lllamnyp wants to merge 1 commit into
mainfrom
chore/oci-source-label

Conversation

@lllamnyp

Copy link
Copy Markdown
Owner

ghcr.io links a container package to its repository through the org.opencontainers.image.source label, and that link is what grants the repository's Actions workflows write access to the package. The package was first created by a manual push, so it came up user-scoped and the release workflow's GITHUB_TOKEN was denied (permission_denied: write_package). The link has been established out-of-band by a labeled push; carrying the label in the Dockerfile keeps it re-establishable from any push path, including a local make docker-push to a freshly-recreated package.

🤖 Generated with Claude Code

ghcr.io links a container package to its repo through
org.opencontainers.image.source, and the link is what grants the repo's
Actions workflows write access. The package was first created by a
manual push, so it came up user-scoped and the release workflow's
GITHUB_TOKEN was denied (write_package). Carrying the label in the
image keeps the link re-establishable from any push path, including
local make docker-push.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant