Skip to content

Fix Publish workflow write_package permission denied on GHCR - #158

Merged
szachovy merged 1 commit into
masterfrom
fix/publish-ghcr-write-package-permission
Apr 9, 2026
Merged

Fix Publish workflow write_package permission denied on GHCR#158
szachovy merged 1 commit into
masterfrom
fix/publish-ghcr-write-package-permission

Conversation

@szachovy

@szachovy szachovy commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Add org.opencontainers.image.source OCI label to all three service Dockerfiles so GHCR automatically links container packages to the repository. Without this label, packages pushed by GITHUB_TOKEN are not associated with the repository, causing write_package permission denied errors.

Also set fail-fast: false on the publish matrix so all three image builds are attempted independently — a failure in one image should not cancel the others.

Changes

  • services/mysql-server/Dockerfile: Add org.opencontainers.image.source OCI label
  • services/mysql-mgmt/Dockerfile: Add org.opencontainers.image.source OCI label
  • services/superset/Dockerfile: Add org.opencontainers.image.source OCI label
  • .github/workflows/publish.yml: Add fail-fast: false to strategy matrix
  • CHANGELOG.md: Document the fix

Note

If the GHCR packages already exist but are not linked to the repository, they must be manually connected via each package's settings page (Manage Actions access → add superset-cluster with Write role), or deleted so they can be recreated with proper linking on the next push.

Closes #157

Add org.opencontainers.image.source OCI label to all three service
Dockerfiles so GHCR automatically links container packages to the
repository. Without this label, packages pushed by GITHUB_TOKEN may
not be associated with the repository, causing write_package permission
denied errors.

Also set fail-fast: false on the publish matrix so all three image
builds are attempted independently.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@szachovy
szachovy merged commit eef776d into master Apr 9, 2026
11 of 12 checks passed
@szachovy
szachovy deleted the fix/publish-ghcr-write-package-permission branch April 9, 2026 10:38
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.

Publish workflow fails with write_package permission denied on GHCR

1 participant