Skip to content

Commit 9444c88

Browse files
Fix GoReleaser Homebrew tap auth with dedicated token
GITHUB_TOKEN can't push to a different repo. Use HOMEBREW_CONTROL_TOKEN secret for cross-repo Homebrew cask formula push. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8385815 commit 9444c88

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
args: release --clean
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
HOMEBREW_CONTROL_TOKEN: ${{ secrets.HOMEBREW_CONTROL_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ homebrew_casks:
2323
repository:
2424
owner: StephanSchmidt
2525
name: homebrew-control
26+
token: "{{ .Env.HOMEBREW_CONTROL_TOKEN }}"
2627
homepage: https://github.com/StephanSchmidt/control
2728
description: Generate SVG diagrams from plain text
2829

0 commit comments

Comments
 (0)