Fix Cosign image digest truncation in workflow#50
Merged
JoshuaAFerguson merged 1 commit intoNov 16, 2025
Merged
Conversation
Fixed an issue where container image digests were being truncated when signing with Cosign, causing parsing errors like: "could not parse reference: ghcr.io/.../streamspace-ui@sha256:5807b1a7bfacd" Root cause: The build output digest from docker/build-push-action can be unreliable for multi-platform builds (linux/amd64,linux/arm64), sometimes resulting in truncated or malformed digest strings when interpolated in GitHub Actions expressions. Solution: Use 'docker buildx imagetools inspect' to reliably extract the manifest list digest after the image is pushed. This approach: - Works correctly for multi-platform builds - Gets the actual manifest digest from the registry - Includes better error handling and debugging output - Validates the full sha256 hash format Changes: - Updated all 3 image signing steps (controller, API, UI) - Updated all 3 SBOM attestation steps - Added validation and error messages for debugging - Removed fragile digest parsing from build output Fixes: Cosign signing failures for multi-platform container images
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.
Fixed an issue where container image digests were being truncated when signing with Cosign, causing parsing errors like:
"could not parse reference: ghcr.io/.../streamspace-ui@sha256:5807b1a7bfacd"
Root cause: The build output digest from docker/build-push-action can be unreliable for multi-platform builds (linux/amd64,linux/arm64), sometimes resulting in truncated or malformed digest strings when interpolated in GitHub Actions expressions.
Solution: Use 'docker buildx imagetools inspect' to reliably extract the manifest list digest after the image is pushed. This approach:
Changes:
Fixes: Cosign signing failures for multi-platform container images