Skip to content

Fix: mutable image reference in action.yml - #96

Merged
san-zrl merged 3 commits into
mainfrom
fix/mutable-image-ref
Aug 27, 2026
Merged

Fix: mutable image reference in action.yml#96
san-zrl merged 3 commits into
mainfrom
fix/mutable-image-ref

Conversation

@san-zrl

@san-zrl san-zrl commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

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.

@san-zrl
san-zrl requested a review from a team as a code owner August 20, 2026 12:10
@san-zrl
san-zrl requested a review from n1ckl0sk0rtge August 20, 2026 12:13
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
san-zrl force-pushed the fix/mutable-image-ref branch from c237bd3 to 8f4e8ce Compare August 27, 2026 08:59
@san-zrl
san-zrl merged commit a900368 into main Aug 27, 2026
2 checks passed
@san-zrl
san-zrl deleted the fix/mutable-image-ref branch August 27, 2026 09:02
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