From e0dbbae41333f2836bf1e7933a2054dfca37e400 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Tue, 3 Mar 2026 20:10:01 +0000 Subject: [PATCH] fix(ci): replace HOMEBREW_TAP_TOKEN PAT with GitHub App token The personal access token expired, causing the v0.3.0 release job to fail at the homebrew tap checkout step. Switch to a GitHub App (actions/create-github-app-token) which auto-rotates tokens per run and has no expiry to manage. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e32af9e..5f6dea5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,11 +128,20 @@ jobs: echo "linux_arm64_sha=$(grep barn-linux-arm64 SHA256SUMS | awk '{print $1}')" >> $GITHUB_OUTPUT echo "linux_x64_sha=$(grep barn-linux-x64 SHA256SUMS | awk '{print $1}')" >> $GITHUB_OUTPUT + - name: Generate Homebrew tap token + uses: actions/create-github-app-token@v2 + id: homebrew-token + with: + app-id: ${{ vars.HOMEBREW_APP_ID }} + private-key: ${{ secrets.HOMEBREW_APP_PRIVATE_KEY }} + owner: samson-media + repositories: homebrew-tap + - name: Checkout homebrew tap uses: actions/checkout@v4 with: repository: samson-media/homebrew-tap - token: ${{ secrets.HOMEBREW_TAP_TOKEN }} + token: ${{ steps.homebrew-token.outputs.token }} path: homebrew-tap - name: Update Homebrew formula