Repository navigation
fix(ci): publish with the runner's skopeo, since quay drops the digests of its rebuilt tags - #505
Merged
Merged
Conversation
…ts of its rebuilt tags The digest of quay.io/skopeo/stable:v1.25.1 pinned in #498 was garbage-collected within a day, and the v0.1.0-alpha.6 release stopped before publishing its image, as alpha.4 did. The runner's skopeo needs no pull; the read-back still checks that the published manifest is the scanned digest. Signed-off-by: samuel mbabhazi <[email protected]>
|
Warning Review limit reachedYou'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 54 minutes. View limit details
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. |
Collaborator
Author
|
Dry run 45790063175 on this branch passed. "Publish the scanned image by digest" ran the runner's |
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.
What changed
The step "Publish the scanned image by digest" of
release.ymluses the runner's ownskopeoinstead ofquay.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.6release (run 45788297642) stopped at this step withfailed to resolve reference "quay.io/skopeo/stable@sha256:4531abd9…". That is the digest #498 pinned the day before, afterv0.1.0-alpha.4failed 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
actionlintpasses. 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 signand before any tag moves.