Skip to content

fix(release): prevent stale tag publication - #77

Merged
rabii-chaarani merged 1 commit into
mainfrom
codex/fix-release-publication-gate
Aug 17, 2026
Merged

fix(release): prevent stale tag publication#77
rabii-chaarani merged 1 commit into
mainfrom
codex/fix-release-publication-gate

Conversation

@rabii-chaarani

@rabii-chaarani rabii-chaarani commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary\n- classify trusted release-please merges before allowing tag and GitHub Release creation\n- keep ordinary successful main CI runs limited to creating or updating the release PR\n- replace negated dry-run publisher conditions with an affirmative publish-assets authorization\n- preserve exact workflow-run, current-main-tip, and release-tag SHA validation\n- extend typed workflow policy tests and release documentation\n\n## Root causes\n1. Run 31980750823 followed an ordinary main CI completion while an older release PR was still pending. release-please created v1.4.1 at an older SHA before the existing post-action SHA guard could stop publication.\n2. Run 31982799005 validated the v1.4.2 artifacts, but both publisher jobs were silently skipped because publication depended on a negated string comparison against the dry-run output.\n\n## Verification\n- cargo test -p xtask --locked\n- cargo run -p xtask --locked -- check-workflows\n- cargo run -p xtask --locked -- release-gate\n- cargo clippy -p xtask --all-targets --locked -- -D warnings\n- cargo fmt --check\n- git diff --check\n- independent code review: approved with no high or critical findings\n\nactionlint was unavailable locally; the workflow parsed and passed the repository's typed YAML policy suite.

@rabii-chaarani
rabii-chaarani force-pushed the codex/fix-release-publication-gate branch from 475a0bc to 6fb5511 Compare August 17, 2026 00:59
@rabii-chaarani
rabii-chaarani marked this pull request as ready for review August 17, 2026 01:01
@rabii-chaarani
rabii-chaarani merged commit 1931dc8 into main Aug 17, 2026
9 checks passed
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