`denied: permission_denied: write_package` when pushing to GHCR.
IntermediateTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → Missing packages: write, the package exists but is not linked to this repo (created by another repo or a user), or the image name has uppercase letters.
Diagnose → Package settings, "Manage Actions access" list; check image name casing.
Fix → Add packages: write, grant the repo write access in package settings, lowercase the name (${GITHUB_REPOSITORY,,}).
Prevent → Add org.opencontainers.image.source label so packages link to the repo automatically.
More on Permissions, Tokens & Secrets
`Error: Resource not accessible by integration` when a workflow tries to comment on a PR.Beginner`remote: Permission to devopsshack/shack-api.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/devopsshack/shack-api/': The requested URL returned error: 403`Beginner`fatal: could not read Username for 'https://github.com': terminal prompts disabled` when cloning a second private repo.BeginnerA secret is empty in the workflow even though it is set in Settings.Beginner`Error: Input required and not supplied: token` on a fork PR.BeginnerReleases created by a workflow do not trigger the `on: release` deploy workflow.Intermediate