Skip to content

fix(ci): refuse to attach OSSign artifacts that don't match the release tag - #144

Merged
lstein merged 1 commit into
mainfrom
fix/wait-signature-stale-artifacts
Jul 12, 2026
Merged

fix(ci): refuse to attach OSSign artifacts that don't match the release tag#144
lstein merged 1 commit into
mainfrom
fix/wait-signature-stale-artifacts

Conversation

@lstein

@lstein lstein commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

During the v1.8.2-rc.1 release, the OSSign-side Windows build failed (node-gyp cannot detect VS on the current windows-latest image — same issue we pinned away in 270c5b2, but in the OSSign-hosted workflow). Despite the failure, the wait loop attached Windows artifacts to the draft release — June's 1.8.1 test build.

Root cause: ossign/actions/workflow/dispatch with single_check has no success/failure output, and for a failed run it returns the project's previous successful artifacts. wait-signature.yml gated attachment only on signed_artifacts != '', so stale wrong-version binaries were silently attached.

Fix

Add a verification step before attaching: parse version: from the returned latest.yml and require it to equal the target tag (sans v). Fail loudly on mismatch or if no latest.yml is present.

The OSSign-side runner pin (windows-latestwindows-2022 in OSSign/invoke-ai-launcher) is handled separately — this PR is the defense-in-depth so a recurrence can never corrupt a release again.

🤖 Generated with Claude Code

…se tag

The OSSign single_check action exposes no success/failure signal, and
when the polled signing run has failed it returns the previous
successful run's artifacts. This let a failed v1.8.2-rc.1 signing run
silently attach June's 1.8.1 test build to the draft release. Verify
the version in the returned latest.yml against the target ref before
attaching, and fail loudly on mismatch or missing metadata.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lstein
lstein merged commit f31ee36 into main Jul 12, 2026
5 checks passed
@lstein
lstein deleted the fix/wait-signature-stale-artifacts branch July 12, 2026 21:00
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