Skip to content

ci: pin release-oci to 3.1.0 instead of an unrecorded @main float - #34

Merged
braghettos merged 1 commit into
mainfrom
ci/pin-release-oci-3.1.0
Nov 30, 2026
Merged

braghettos merged 1 commit into
mainfrom
ci/pin-release-oci-3.1.0

Conversation

@braghettos

Copy link
Copy Markdown

What

Pins the release-oci reusable workflow call to a commit and version comment. One YAML line changed, plus a comment.

Why

The org contract (krateo-platformops/.github CONTRIBUTING.md; krateo-blueprints/charts rule 9, enforced by pinned-uses.yaml) requires a cross-repo reusable workflow to be pinned by full 40-hex commit with a version comment. A float is legal only in the recorded form @main # floating: YYYY-MM-DD <reason>. This line was @main with neither, so it is an unrecorded float.

What the pin does

It freezes current behaviour; it does not change it. @main of krateo-platformops/.github (ce0ac11) is one commit past tag 3.1.0 (f948f90, the tag object 23ebd81 dereferenced to that commit), and that commit touches only CONTRIBUTING.md and a workflow template. release-oci.yaml is byte-identical at both, so pinning 3.1.0 is exactly what runs today.

Behaviour change that already happened (for the owner to decide)

Because this caller floated, it received release-oci 3.0.0 with no commit here. dry_run is now auto | true | false, default auto (an empty value is refused). Under auto, a real publish happens only on a tag push. This caller passes no dry_run:

Trigger Before (2.x, default false) Now (auto)
tag push publish publish
workflow_dispatch publish rehearse (green run, nothing pushed)

The 3.0.0 migration notes cover this case: "a caller with a workflow_dispatch that should publish from a manual run: pass dry_run: false" (header of release-oci.yaml, "Migrating to 3.0.0").

Decision requested: should a manual run of this repository publish? If yes, add dry_run: false; if rehearsal is wanted, nothing to do. I have deliberately not changed dry_run or the triggers here.

Urgency

Not urgent. Nothing is broken: the tag-push release path publishes correctly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N8HNbD9V4fxkaSxajetjxe

The reusable workflow was referenced as @main with no floating marker, version
comment or SHA, which the org ref contract does not allow. Pin it to the commit
main resolved to (workflow file byte-identical to 3.1.0), so behaviour is frozen
and the next change shows up as a diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N8HNbD9V4fxkaSxajetjxe
@braghettos

Copy link
Copy Markdown
Author

This PR and #35 are jointly required — merging one alone leaves this repository failing rule 9.

This repository has two bare (unrecorded) @main refs into krateo-platformops/.github, and they
are being fixed two different ways on purpose:

.github/workflows/release-oci.yaml:25     -> PINNED here, in this PR (#34)
.github/workflows/release-notes.yaml:26   -> RECORDED FLOAT in #35

The split is deliberate: release-oci.yaml:25 is the line with measured harm — floating @main
carried it across release-oci 3.0.0, whose dry_run default became auto, so its
workflow_dispatch publish path silently became a green no-op. A pin is the response to evidence.
release-notes.yaml:26 has no such history, so it takes the organisation's default treatment, a
recorded float.

Measured just now, running the pinned-uses checker (extracted from
pinned-uses.yaml@f7efb919f4c8fbe37b01520e37790ab4b7404e63) against a checkout carrying only
#35's change:

git-provider   rc=1   2 reusable-workflow uses, 1 not pinned (rule 9), 1 floating

versus four sibling repositories that took the marker on every line:

gojq rc=0  audit rc=0  sse-proxy rc=0  identity-lifecycle rc=0      (0 not pinned)

So with #35 alone this repository still fails, and with #34 alone it also still fails. Both, in
either order, and it passes.

Nothing is failing today — pinned-uses runs in 0 repositories in this organisation, so this is
latent either way. Flagging it because the two-PR coupling is my doing and would not be obvious from
either PR read alone.

@braghettos
braghettos merged commit 57d6787 into main Nov 30, 2026
3 checks passed
@braghettos
braghettos deleted the ci/pin-release-oci-3.1.0 branch November 30, 2026 21:29
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