From 6d85a2b884731b9a0f59cecef8a74897cca1f1ed Mon Sep 17 00:00:00 2001 From: Scott Gerlach Date: Wed, 22 Apr 2026 10:27:47 -0600 Subject: [PATCH] fix: drop setup-homebrew from release workflow to preserve git auth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Homebrew/actions/setup-homebrew resets the checked-out repo's git config, wiping the auth extraheader that actions/checkout@v4 configures from GITHUB_TOKEN. The 'Commit and push' step then fails with 'could not read Username for https://github.com'. The renderer only needs curl, shasum, sed, and awk — all preinstalled on ubuntu-latest. Drop the setup-homebrew step. The PR test workflow still keeps setup-homebrew (it needs brew for audit/install/test). --- .github/workflows/update-formula.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-formula.yml b/.github/workflows/update-formula.yml index 6bd9de3..37c3c47 100644 --- a/.github/workflows/update-formula.yml +++ b/.github/workflows/update-formula.yml @@ -46,7 +46,11 @@ jobs: - uses: actions/checkout@v4 - - uses: Homebrew/actions/setup-homebrew@master + # Intentionally NOT installing Homebrew here — the renderer only needs + # curl/shasum/sed, all of which are preinstalled on ubuntu-latest, and + # Homebrew/actions/setup-homebrew rewrites the repo's git config in a + # way that wipes the auth header set by actions/checkout@v4, breaking + # `git push`. - name: Render formula env: