Skip to content

Commit 6b3e348

Browse files
committed
fix: use dedicated PAT for Homebrew tap publishing
The default GITHUB_TOKEN only has access to the current repo. Use HOMEBREW_TAP_TOKEN secret for cross-repo push to homebrew-fizzy.
1 parent 4e44be3 commit 6b3e348

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ brews:
7070
- repository:
7171
owner: zainfathoni
7272
name: homebrew-fizzy
73-
token: "{{ .Env.GITHUB_TOKEN }}"
73+
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
7474
directory: Formula
7575
homepage: https://github.com/zainfathoni/fizzy-md
7676
description: Transparent Markdown→HTML wrapper for Fizzy CLI

0 commit comments

Comments
 (0)