Skip to content

Commit 22e2fcc

Browse files
committed
ci(github-actions): update token secrets for release workflow
The release workflow now uses a single personal access token (GH_PAT) for both GitHub and Homebrew Tap operations instead of separate tokens. This simplifies secret management and ensures consistent authentication across both repositories during the release process.
1 parent a42cf4b commit 22e2fcc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,5 @@ jobs:
2929
version: "~> v2"
3030
args: release --clean
3131
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
# For pushing to homebrew-tap repo, use a PAT with repo scope
34-
# or use GITHUB_TOKEN if homebrew-tap allows it
35-
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
33+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }}

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ brews:
6969
repository:
7070
owner: agentsdance
7171
name: agentx
72+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
7273
directory: Formula
7374
homepage: "https://github.com/agentsdance/agentx"
7475
description: "CLI tool for managing MCP servers and skills across AI coding agents"

0 commit comments

Comments
 (0)