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
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:mainis denied by GitHub's registry permissions.Error Log:
Proposed Solution
1. Update Workflow Permissions: Explicitly grant write access to the packages in the
.github/workflows/docker-publish.ymlfile.2. Verify Token Scope: If using a Personal Access Token (PAT), ensure it has the
write:packagesand repo scopes.Tasks
YAML permissions: contents: read packages: writedocker/login-actionis usingregistry: ghcr.io.