Skip to content

Rotate expired HOMEBREW_TAP_GITHUB_TOKEN secret (breaks Homebrew tap on release) #165

Description

@blsmth

Problem

The GoReleaser brews step pushes the updated formula to apppackio/homebrew-apppack using the HOMEBREW_TAP_GITHUB_TOKEN repo secret. That secret (last set 2026-06-30) has expired/been revoked, so the tap update now fails with:

homebrew tap formula: could not get default branch: GET https://api.github.com/repos/apppackio/homebrew-apppack: 401 Bad credentials

The GitHub Release + binaries still publish fine — only the Homebrew tap update fails, causing the goreleaser workflow to exit non-zero.

Impact

Every tagged release will fail the goreleaser job at the Homebrew step until the token is refreshed. brew install/upgrade apppack users won't get the new version automatically.

Observed on

Fix

  1. Generate a new PAT with write access to apppackio/homebrew-apppack (classic PAT with repo scope, or a fine-grained token scoped to that repo with Contents: read/write). Prefer setting a calendar reminder or using a long/no-expiry token to avoid recurrence.
  2. Update the secret:
    gh secret set HOMEBREW_TAP_GITHUB_TOKEN --repo apppackio/apppack
    
  3. Verify on the next release, or re-run the failed goreleaser job for v4.8.1 to confirm the tap step succeeds.

Config references

  • .github/workflows/goreleaser.yml — passes HOMEBREW_TAP_GITHUB_TOKEN env
  • .goreleaser.ymlbrews[].repository.token

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions