Skip to content

Grant packages: write to the docker image workflow - #25

Merged
igalshilman merged 1 commit into
mainfrom
ci/docker-packages-write
Nov 19, 2026
Merged

igalshilman merged 1 commit into
mainfrom
ci/docker-packages-write

Conversation

@igalshilman

Copy link
Copy Markdown
Contributor

The Build docker image workflow has failed on every push to main since 2026-11-02 (6a63deb, f65c084, 597dfde). The push step fails with denied: installation not allowed to Write organization package.

The job's token reports Packages: read, so the org default GITHUB_TOKEN is now read-only. As a result, ghcr.io/restatedev/test-services-ruby:main is still the 2026-10-28 image, and the nightly Ruby run in e2e-verification-runner has been testing that image.

This PR gives that one job contents: read and packages: write.

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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-image now declares contents: read for actions/checkout and packages: write for docker/login-action and docker/build-push-action, which push ghcr.io/restatedev/test-services-ruby. These are the only things the job does with secrets.GITHUB_TOKEN, so nothing is over-granted.
  • Lockfile unaffected: .github/workflows/actions.lock only records uses: refs. A change to permissions alone doesn't need a relock.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@igalshilman
igalshilman merged commit dfb20eb into main Nov 19, 2026
4 checks passed
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.

1 participant