Fix: mutable image reference in action.yml - #96
Merged
Conversation
Signed-off-by: san-zrl <san@zurich.ibm.com>
Signed-off-by: san-zrl <san@zurich.ibm.com>
Signed-off-by: san-zrl <san@zurich.ibm.com>
san-zrl
force-pushed
the
fix/mutable-image-ref
branch
from
August 27, 2026 08:59
c237bd3 to
8f4e8ce
Compare
5 tasks
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.
Summary
action.yml used image: 'Dockerfile', pointing at a wrapper that always pulled :edge. Every consumer ran whatever :edge resolved to on execution day, regardless of the pinned version tag. This is why v2.1.2 CI passed at tag time and broke months later with no commit in between.
Fixes
#95
Changes
action.yml — replaced image: 'Dockerfile' with docker://ghcr.io/cbomkit/cbomkit-action:edge. The old Dockerfile wrapper is deleted.
build.yaml — new Pin release image tag step: on every release event, rewrites the image: line in action.yml to the exact semver tag, commits to main, and force-moves the git tag to that commit. Consumers pinning @vX.Y.Z now always get an immutable image. CBOM is always created with the latest version on main.
build.yaml — Create CBOM self-reference updated from the hardcoded @v2.1.2 to @main so the repo always scans itself using the current main branch of the action.