This repository was archived by the owner on May 21, 2026. It is now read-only.
Fix release workflow auth (drop setup-homebrew)#2
Closed
sgerlach wants to merge 1 commit into
Closed
Conversation
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).
Contributor
Author
|
Closing — we're mirroring hawkscan's homebrew-cli pattern instead (dumb tap, release pipeline in hawkop pushes directly). Opening a cleanup PR that removes the workflow entirely. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First manual dispatch of
update-formula.yml(for v0.6.1) failed atthe push step:
Homebrew/actions/setup-homebrew@masterrewrites the repo's git config,wiping the
http.https://github.com/.extraheaderthatactions/checkout@v4sets fromGITHUB_TOKEN. The local commit succeeds,but
git pushhas nothing to authenticate with.The renderer only needs
curl,shasum,sed, andawk— all of whichare preinstalled on
ubuntu-latest. Drop setup-homebrew from thisworkflow.
test.ymlkeeps it (it genuinely needs brew for audit/install/test).Test plan
gh workflow run update-formula.yml -f version=0.6.1and confirm it commits
Formula/hawkop.rbon main.brew untap stackhawk/hawkop; brew tap stackhawk/hawkop; brew install hawkopinstalls successfully.