From 22e2fcc6c4d16a1141afd6dbb7c8671f60257ecc Mon Sep 17 00:00:00 2001 From: zzxwill Date: Tue, 13 Jan 2026 21:26:01 +0800 Subject: [PATCH] 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. --- .github/workflows/release.yml | 6 ++---- .goreleaser.yml | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f08e9a7..aa70cac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,5 @@ jobs: version: "~> v2" args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # For pushing to homebrew-tap repo, use a PAT with repo scope - # or use GITHUB_TOKEN if homebrew-tap allows it - HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 6975d5c..65a3b99 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -69,6 +69,7 @@ brews: repository: owner: agentsdance name: agentx + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" directory: Formula homepage: "https://github.com/agentsdance/agentx" description: "CLI tool for managing MCP servers and skills across AI coding agents"