Skip to content

Fix GHCR push failure (denied: installation not allowed to Create organization package) #256

@Nitya-003

Description

@Nitya-003

Description

The CI/CD pipeline is currently failing during the docker/build-push-action step. While the build completes successfully, the push to ghcr.io/nitya-003/innerhue:main is denied by GitHub's registry permissions.

Error Log:

buildx failed with: ERROR: failed to build: failed to solve: failed to push ghcr.io/nitya-003/innerhue:main: 
denied: installation not allowed to Create organization package

Proposed Solution

1. Update Workflow Permissions: Explicitly grant write access to the packages in the .github/workflows/docker-publish.yml file.
2. Verify Token Scope: If using a Personal Access Token (PAT), ensure it has the write:packages and repo scopes.

Tasks

  • Add permissions block to the GitHub Action YAML:
    YAML permissions: contents: read packages: write
  • Verify that the docker/login-action is using registry: ghcr.io.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions