Repository navigation
fix: verify uploaded release updater assets - #492
Merged
Merged
Conversation
Contributor
Greptile SummaryThis PR strengthens draft-release verification so updater manifests and their referenced uploaded artifacts are validated before publication.
Confidence Score: 5/5The PR appears safe to merge, with no concrete blocking or non-blocking defects identified in the changed release-verification path. The workflow installs the locked parser dependency, validates locally produced Linux assets before upload, and verifies actual draft-release manifests and artifact bytes using checks consistent with the configured electron-builder outputs.
|
| Filename | Overview |
|---|---|
| scripts/verify-release-assets.cjs | Adds strict YAML parsing, uploaded-asset availability checks, checksum verification, and an injectable end-to-end verifier without an identified defect. |
| .github/workflows/release.yml | Adds architecture-aware Linux pre-upload checks and installs locked verifier dependencies before post-upload validation. |
| tests/release-asset-verifier.test.cjs | Adds deterministic uploaded-release simulations covering supported platforms and principal failure modes. |
| tests/release-config.test.ts | Asserts that the new workflow verification and dependency-installation steps remain configured. |
| docs/release-process.md | Documents the strengthened pre-upload and post-upload release verification contract. |
Sequence Diagram
sequenceDiagram
participant Platform as Platform release jobs
participant Draft as GitHub draft release
participant Verify as verify-release job
participant Script as Asset verifier
participant Publish as publish-release job
Platform->>Platform: Check local manifests and installers
Platform->>Draft: Upload release assets
Verify->>Verify: Install locked dependencies
Verify->>Draft: Fetch draft release metadata
loop Required updater manifests
Script->>Draft: Download manifest
Script->>Script: Parse YAML and validate mapping
loop Referenced artifacts
Script->>Draft: Download uploaded artifact
Script->>Script: Recompute and compare SHA-512
end
end
alt Verification succeeds
Verify->>Publish: Allow draft publication
else Verification fails
Verify--xPublish: Keep release unpublished
end
Reviews (1): Last reviewed commit: "ci: verify uploaded updater manifests an..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Implement FloCafe issue #465 under epic #463 by enforcing release verification for every shipped Windows, macOS, and Linux self-updating target. Verification must use the actual uploaded GitHub draft release, fail on missing or malformed latest*.yml manifests, unavailable referenced assets, or SHA-512 mismatches, while preserving the draft-until-verified flow from PR #488.
What changed
Microsoft Store/Mac App Store publishing automation and Windows direct-download code signing are unchanged and not part of this change.
Testing
npm run test:release-confignpm run lintgit diff --checkFixes #465
Refs #463