File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - uses : actions/setup-go@v5
1616 with :
1717 go-version : " 1.24.2"
18+ # Mint short-lived token for the tap repo
19+ - id : app-token
20+ uses : tibdex/github-app-token@v2
21+ with :
22+ app_id : ${{ secrets.APP_ID }}
23+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
24+ # Optionally restrict to just the tap repo
25+ repositories : ' homebrew-tap'
1826 - name : GoReleaser
1927 uses : goreleaser/goreleaser-action@v6
2028 with :
2331 args : release --clean
2432 env :
2533 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ HOMEBREW_TAP_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ brews: # <- still deprecated but works
3232 repository :
3333 owner : major-technology
3434 name : homebrew-tap
35+ token : " {{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
3536 commit_author :
3637 name : goreleaser
3738 email : goreleaser@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments