Skip to content

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

Merged
Timofei Larkin (lllamnyp) merged 1 commit into
mainfrom
chore/oci-source-label
Oct 2, 2026
Merged

Timofei Larkin (lllamnyp) merged 1 commit into
mainfrom
chore/oci-source-label

Conversation

@lllamnyp

Copy link
Copy Markdown
Member

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: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
@lllamnyp
Timofei Larkin (lllamnyp) marked this pull request as ready for review October 2, 2026 07:17
@lllamnyp
Timofei Larkin (lllamnyp) merged commit c8c04fd into main Oct 2, 2026
2 of 4 checks passed
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