Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
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.
Summary
Every publish, prereleases included, overwrites the single appcast that every install polls with automatic updates on. The feed itself is unsigned.
Republish Pagesalso accepted a free-form CNAME and redeployed the newest successful Release run from any ref. This keeps test prereleases off the production feed, signs the feed, and limits whatRepublish Pagescan deploy.Skipping the appcast for every prerelease would break updates for everyone. All 22 releases so far, including the one the live feed serves now (
0.6.2-beta), arevX.Y.Z-beta, and the workflow already classes those as prereleases. So this PR narrows the rule instead:release.ymlcomputesproduction_channelin the metadata step. It is true forX.Y.Zand plainX.Y.Z-beta(optionally with+buildmetadata) and false for any other pre-release suffix (-rc.1,-beta.2,-alpha, …). Test prereleases still get a GitHub prerelease with the DMG. They skip Sparkle signing, the appcast and the Pages deploy, andupdate-homebrew-caskskips them too, because the cask is also a production channel. The run summary says whether the feed was updated.project.yml, supports signed feeds: given an.xmlfile,sign_updateappends an EdDSA signature block as a trailing XML comment. Publish now runssign_update --ed-key-file … --disable-signing-warning build/appcast.xmland thensign_update --verifyon the result.--disable-signing-warningavoids re-serializing the XML, so the generated bytes are signed unchanged.SURequireSignedFeedis not set (see Risk).republish-pages.yml:updates.cotabby.app(it was a free-formcustom_domaininput).mainor av*tag. Thegithub-pagesenvironment already enforces this.main. For a tag-push run, the tag must exist and point at the run'sheadSha, so a branch named like a tag doesn't count.appcast.xml, so dry runs and test prereleases are skipped instead of ending the search.release.ymlmetadata outputs are written in one grouped redirect, which clears the existing shellcheck SC2129 note.RELEASING.mddocuments the channel rule.Validation
actionlint:republish-pages.ymlis clean.release.ymlshows only the SC2046 note already onmain, in the certificate import step, which this PR doesn't touch.0.6.2-beta,1.0.0,0.7.0-beta+build.5(production) and1.0.0-rc.1,0.7.0-beta.2,0.7.0-alpha,0.7.0-betax,0.7.0-Beta(test). Each came out as listed.ghcalls. The run filter returns tag-push and main-dispatch runs. The tag check matchedv0.6.2-betato its run's commit and skipped older runs whose tags have since moved. The script then exited with the intended error, because no retained run still has anappcast.xml(see Risk).sign_update's feed signing and verification paths and the client's feed loading in Sparkle 2.9.1 (sign_update/main.swift,common_cli/Signing.swift,SPUExtractSignedFeed.m,SUAppcastDriver.m). WithoutSURequireSignedFeed, the client parses the downloaded bytes as before, and the signature block is an ordinary trailing XML comment.release.ymlorrepublish-pages.yml. The feed-signing step first runs on the next real publish: check thathttps://updates.cotabby.app/appcast.xmlends with a<!-- sparkle-signatures:block, and that an existing install still sees the update.Linked issues
None filed. Addresses L13 from a static security review of
8cdbea2.Risk / rollout notes
vX.Y.Z-betastill reaches every install and the cask. A tag with any other suffix now reaches nobody automatically; testers have to download it from the GitHub prerelease. A real beta channel would be a natural follow-up: Sparkle channels (sparkle:channelitems plusallowedChannels(for:)in an updater delegate) or a second feed.SURequireSignedFeed(Sparkle then also requiresSUVerifyUpdateBeforeExtraction) before signed feeds have been served in production could strand installs on a feed they reject. Suggested follow-up, after one or two releases with a verified signed feed: set both keys inCotabbyInfo.plistand ship that build.0.6.2-betafeed (July 20) has none left, so today this workflow cannot restore the current feed. If you want a durable source, attachappcast.xmlto each GitHub Release, or raise artifact retention.release.ymlwith Gate release signing behind a reviewed environment and commits on main #916, which moves appcast signing frompublishintonotarize, and with Pin release DMG tooling by hash and keep signing keys out of reach in the build job #920, which adds the key check and cleanup steps topublish. Whichever merges later needs a rebase. With Gate release signing behind a reviewed environment and commits on main #916 in, theproduction_channelconditions and the "Sign the update feed" step go with the signing steps intonotarize, the Pages steps stay inpublish, andnotarize's signing condition becomespublish == 'true' && production_channel == 'true'.🤖 Generated with Claude Code