ci: script the Homebrew formula bump (replace mislav action)#16
Merged
Conversation
mislav/bump-homebrew-formula-action resolves the source tarball via a HEAD to GitHub's tarball API, which started returning HTTP 303 (not 302) around 2026-05-16; the action only accepts 302 and throws 'unexpected HTTP 303'. The fix (PR #342) is unmerged and the action's last release predates the break, so every bump now fails deterministically. Replace it with a small script: curl -L the source archive (follows any redirect) to compute the sha256, rewrite url + sha256 in the tap formula, and open the bump PR. curl fetches the same canonical archive brew downloads, so the checksum matches by construction and the formula keeps its standard github.com/archive url. Re-run safe via force-push + PR-exists check.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
ckoegel
approved these changes
Jun 30, 2026
michaela-band
approved these changes
Jun 30, 2026
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.
Why
mislav/bump-homebrew-formula-actionresolves the source tarball with aHEADto GitHub's tarball API (HEAD /repos/{owner}/{repo}/tarball/{ref}). That endpoint started returning HTTP 303 instead of 302 around 2026-05-16, and the action'sresolveRedirectonly accepts 302 — so every bump now fails deterministically withunexpected HTTP 303 responsebefore the formula is written.What
Replace the action with a small script in the
bump-formulajob:curl -fsSLthe source archive (follows any redirect — 302/303/whatever) and compute its sha256. This fetches the same canonicalgithub.com/archivearchive brew downloads, so the checksum matches by construction (no "legacy" codeload mismatch the action had to hack around).url+sha256inFormula/band.rb, keeping the standardgithub.com/archiveURL (audit-clean).band vX.Y.Zbump PR on the tap.Re-run safe: force-pushes the bump branch and only opens a PR if one isn't already open. No-ops if the formula is already at the target version. Reuses the existing
HOMEBREW_TAP_TOKEN; no new secrets.Test plan
Shake out on the upcoming
v0.2.1-betacut — confirm it opens a clean tap PR that passes the (now tap-trusted) strict audit.