Skip to content

Commit 707231a

Browse files
committed
Fix Homebrew tap token for GoReleaser
Add HOMEBREW_TAP_GITHUB_TOKEN to goreleaser config and release workflow so GoReleaser can push the formula to sns45/homebrew-tap. The default GITHUB_TOKEN lacks cross-repo write access.
1 parent e5e43a3 commit 707231a

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
@@ -31,6 +31,7 @@ jobs:
3131
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
3435

3536
# Dogfood: full pipeline against reference project + sign the binary
3637
- name: Build forgeseal for dogfooding

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ brews:
3838
repository:
3939
owner: sns45
4040
name: homebrew-tap
41+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
4142
homepage: "https://github.com/sns45/forgeseal"
4243
description: "Supply chain security for JavaScript and TypeScript projects"
4344
license: "Apache-2.0"

0 commit comments

Comments
 (0)