Repository navigation
Grant packages: write to the docker image workflow - #25
Merged
Merged
Conversation
The org default GITHUB_TOKEN is read-only, so every push of ghcr.io/restatedev/test-services-ruby:main since 2026-11-02 failed with 'installation not allowed to Write organization package'. The nightly Ruby verification has been running against the 2026-10-28 image.
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Approach: Sound. Declaring job-level permissions is the standard way to get past a read-only org default GITHUB_TOKEN, and this job asks only for the scopes it uses.
Reviewed changes: I reviewed the one permissions change to .github/workflows/docker.yaml.
- Scoped token permissions for the image push:
build-ruby-services-docker-imagenow declarescontents: readforactions/checkoutandpackages: writefordocker/login-actionanddocker/build-push-action, which pushghcr.io/restatedev/test-services-ruby. These are the only things the job does withsecrets.GITHUB_TOKEN, so nothing is over-granted. - Lockfile unaffected:
.github/workflows/actions.lockonly recordsuses:refs. A change topermissionsalone doesn't need a relock.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The
Build docker imageworkflow has failed on every push tomainsince 2026-11-02 (6a63deb,f65c084,597dfde). The push step fails withdenied: installation not allowed to Write organization package.The job's token reports
Packages: read, so the org defaultGITHUB_TOKENis now read-only. As a result,ghcr.io/restatedev/test-services-ruby:mainis still the 2026-10-28 image, and the nightly Ruby run ine2e-verification-runnerhas been testing that image.This PR gives that one job
contents: readandpackages: write.