Repository navigation
Publish a Homebrew cask to duneanalytics/homebrew-tap - #64
Merged
Merged
Conversation
GoReleaser now generates the dune-cli cask on each release and opens a PR against the tap's main branch, which requires PRs. The cask clears the macOS quarantine bit since the binary is not notarized. Publishing is skipped until the HOMEBREW_TAP_GITHUB_TOKEN secret exists. Towards GRO-1380 Amp-Thread-ID: https://ampcode.com/threads/T-01a1ef85-b72d-741e-af78-85fff2e3f20d Co-authored-by: Amp <amp@ampcode.com>
Contributor
Author
|
@claude auto-approve |
Use the homebrew-tap-writer app (DF-1897) via actions/create-github-app-token, matching the org pattern, instead of a long-lived token secret. The step and the cask are skipped until the app secrets exist. Towards GRO-1380 Amp-Thread-ID: https://ampcode.com/threads/T-01a1ef85-b72d-741e-af78-85fff2e3f20d Co-authored-by: Amp <amp@ampcode.com>
Towards GRO-1380 Amp-Thread-ID: https://ampcode.com/threads/T-01a1ef85-b72d-741e-af78-85fff2e3f20d Co-authored-by: Amp <amp@ampcode.com>
ivpusic
approved these changes
Nov 19, 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.
What & why
Releases now publish a Homebrew cask, so users can run
brew install duneanalytics/tap/dune-clion macOS and Linux.GoReleaser opens a PR against the tap instead of pushing, because the tap's
mainrequires PRs (SOC 2 ruleset).The release mints a short-lived token from the
homebrew-tap-writerGitHub App (DF-1897); until its secrets are set, the cask is skipped and releases keep working.Nix support follows in a separate PR.
Architecture
.goreleaser.yml: newhomebrew_casksentrydune-cli(binarydune). It pushes branchdune-cli-<version>toduneanalytics/homebrew-tapand opens a PR intomain. A postflight step removescom.apple.quarantineon macOS, because the binary is not signed or notarized (this is the approach the GoReleaser docs recommend).skip_uploadistruewhile the token is unset andautoonce it is set, so prereleases are never published..github/workflows/release.yml: mints the tap token withactions/create-github-app-token(pinned v3.3.0, scoped tohomebrew-tap) and passes it to GoReleaser asHOMEBREW_TAP_GITHUB_TOKEN. The step is skipped whileHOMEBREW_TAP_WRITER_APP_CLIENT_IDis empty orPLACEHOLDER(the value infra sets before the real one)..gitignore:/dist/.goreleaser check(v2.20.2, no deprecations) andgoreleaser release --snapshot --clean. I installed the generated cask from a local tap with Homebrew 7.0.14 on macOS arm64, served over HTTP so the download is quarantined. Without the postflight step, the installed binary keepscom.apple.quarantine; with it, the flag is removed anddune --versionruns. I also installed it in ahomebrew/brewLinux container (Homebrew 7.0.14), where it ran.homebrew-tap-writerapp (Contents and Pull requests write, installed only onhomebrew-tap) and set theHOMEBREW_TAP_WRITER_APP_*secrets declared in duneanalytics/infra#6902 (DF-1897).Agent context
goreleaser check && goreleaser release --snapshot --clean && cat dist/homebrew/Casks/dune-cli.rbduneanalytics/tap/dune-cli) trusts that cask. A short-name install needsbrew trust.Towards GRO-1380