Skip to content

Push release images with a packages-write token - #307

Merged
eightynine01 merged 1 commit into
mainfrom
fix/release-ghcr-login
Nov 7, 2026
Merged

eightynine01 merged 1 commit into
mainfrom
fix/release-ghcr-login

Conversation

@eightynine01

Copy link
Copy Markdown
Contributor

The ghcr.io/keiailab/postgres-operator package denies write to the
repo's GITHUB_TOKEN ("denied: permission_denied: write_package").
Granting Actions access on an org package is UI-only, so the image
job of v0.4.0-beta.10/11/12 failed identically at docker push.

Login (image, sign-image) and the SLSA generator now use
GHCR_PUSH_USER / GHCR_PUSH_TOKEN repo secrets, falling back to
github.actor / GITHUB_TOKEN when unset. Action pins unchanged.

Release run 42424886751 (tag v0.4.0-beta.12) failed at docker push with denied: permission_denied: write_package. After merge the release is re-run via workflow_dispatch -f tag=v0.4.0-beta.12 on main; all checkouts already resolve inputs.tag || github.ref, so the tag's tree (4273b4f) is built.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T23:29:54.231910Z e19d4a1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e19d4a1c5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release.yml Outdated
image: ghcr.io/keiailab/postgres-operator
digest: ${{ needs.image.outputs.digest }}
registry-username: ${{ github.actor }}
registry-username: ${{ secrets.GHCR_PUSH_USER || github.actor }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use an allowed context for the provenance username

For every release run, this reusable-workflow with input references secrets, but GitHub’s context-availability table does not allow that context for jobs.<job_id>.with.<with_id>. Actions rejects the workflow before its jobs start; use an allowed context such as vars for the username, while keeping the token under jobs.provenance.secrets.

Useful? React with 👍 / 👎.

The ghcr.io/keiailab/postgres-operator package denies write to the
repo's GITHUB_TOKEN ("denied: permission_denied: write_package").
Granting Actions access on an org package is UI-only, so the image
job of v0.4.0-beta.10/11/12 failed identically at docker push.

Login (image, sign-image) and the SLSA generator now use repo
variable GHCR_PUSH_USER and secret GHCR_PUSH_TOKEN, falling back to
github.actor / GITHUB_TOKEN when unset. The username is a variable
because `secrets` is not a valid context in a reusable workflow's
`with:` block. Action pins unchanged.
@eightynine01
eightynine01 force-pushed the fix/release-ghcr-login branch from e19d4a1 to 81f4e6f Compare November 7, 2026 23:33
@eightynine01
eightynine01 merged commit a137099 into main Nov 7, 2026
5 checks passed
@eightynine01
eightynine01 deleted the fix/release-ghcr-login branch November 7, 2026 23:37
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.

2 participants