Skip to content

fix(ci): pin skopeo to the digest quay.io serves for v1.25.1 - #498

Merged
samuelmbabhazi merged 1 commit into
mainfrom
fix/release-skopeo-digest
Nov 25, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
fix/release-skopeo-digest

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

The release workflow's publish step runs skopeo from quay.io/skopeo/stable:v1.25.1 by digest. quay.io rebuilt that tag and no longer serves the pinned manifest sha256:58db214a… (it answers not found). The pin moves to the digest it serves now, sha256:4531abd9….

Why

The v0.1.0-alpha.4 release built and scanned the control plane image, then failed at "Publish the scanned image by digest" with failed to resolve reference … not found. Its agent and CLI binaries are published, but its image and control plane bundle are not.

How it was tested

  • The new digest was pulled and runs skopeo version 1.25.1.
  • A manual run of release.yml on this branch is a dry run that copies to a local registry through the same step. It is started on this branch to check the step.

Security considerations

Still pinned by digest, same version. A tag that quay rebuilds can drop an old digest again; tracking that pin with Renovate is a follow-up.

The v0.1.0-alpha.4 release built and scanned the control plane image,
then could not publish it: quay.io rebuilt skopeo/stable:v1.25.1 and no
longer serves the pinned manifest (not found). The new digest was pulled
and runs skopeo 1.25.1.

Signed-off-by: samuel mbabhazi <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 24e27cc and f2b80ea.

Files selected for processing: 1

  • .github/workflows/release.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@samuelmbabhazi
samuelmbabhazi merged commit 2b2c9e7 into main Nov 25, 2026
29 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/release-skopeo-digest branch November 25, 2026 18:07
samuelmbabhazi added a commit that referenced this pull request Nov 26, 2026
…ts of its rebuilt tags (#505)

## What changed

The step "Publish the scanned image by digest" of `release.yml` uses the
runner's own `skopeo` instead of
`quay.io/skopeo/stable:v1.25.1@sha256:…`. It fails with a clear message
if the runner has none, and logs the version it used. The copy (`copy
--all --preserve-digests`) and the read-back are unchanged.

## Why

The `v0.1.0-alpha.6` release (run 45788297642) stopped at this step with
`failed to resolve reference "quay.io/skopeo/stable@sha256:4531abd9…"`.
That is the digest #498 pinned the day before, after `v0.1.0-alpha.4`
failed the same way. quay.io rebuilds that tag and garbage-collects the
earlier digests, so any digest pin of it breaks within days. alpha.6
published its binaries only.

The runner's skopeo needs no pull. The integrity check does not depend
on the tool: the step reads the published manifest back and compares its
SHA-256 with the digest that was built, scanned and is about to be
signed.

## How it was tested

`actionlint` passes. A manual run of the release workflow on this
branch, a dry run, builds and scans the image, then runs this step
against a local registry. Its result is in the comment below.

## Security considerations

The tool comes from the GitHub-hosted runner image, which the job
already trusts for Docker and the build. A copy that changed the image
would fail the digest read-back before `cosign sign` and before any tag
moves.

Signed-off-by: samuel mbabhazi <[email protected]>
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