Skip to content

feat(release)!: resolve the toolkit from the reusable workflow's own commit - #18

Merged
chhoumann merged 1 commit into
mainfrom
feat/self-resolving-toolkit
Jul 11, 2026
Merged

feat(release)!: resolve the toolkit from the reusable workflow's own commit#18
chhoumann merged 1 commit into
mainfrom
feat/self-resolving-toolkit

Conversation

@chhoumann

Copy link
Copy Markdown
Owner

BREAKING CHANGE: removes the workflows-repository / workflows-ref inputs from all three release reusables. Callers that pass them fail with an invalid-input error - delete the workflows-ref: line from the stubs when bumping the uses: pin to v4.

The toolkit checkout in prepare, validate, and release now uses job.workflow_repository / job.workflow_sha - the reusable workflow's own commit - and the attestation signer identity derives from job.workflow_repository + job.workflow_file_path. GitHub's contexts documentation shows exactly this reusable-workflow self-checkout pattern.

This eliminates the two-pins-in-lockstep footgun for SHA-pinning consumers: previously a Dependabot bump of the uses: SHA left workflows-ref behind, silently running new workflow logic against old toolkit scripts (or failing on a missing script). Now the uses: ref is the single version pin and workflow + scripts are always the same commit, so Dependabot bumps are self-consistent by construction.

Also documents the fail-closed recovery behavior for releases cut under an older release-policy (observed on NoteTweet 0.6.6, a chore-only release from the v2-era rules: the stage-3 recompute correctly refuses with "Release plan version is none").

Ships as v4; v3 stays in place for unmigrated consumers.

@chhoumann
chhoumann merged commit b209e43 into main Jul 11, 2026
1 check passed
@chhoumann
chhoumann deleted the feat/self-resolving-toolkit branch July 11, 2026 17:47
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