Skip to content

Commit 92f36a0

Browse files
anandgupta42claude
andcommitted
fix: use token-embedded URL for Homebrew tap push
git config http.extraHeader wasn't working via Bun shell. Use x-access-token URL scheme instead, which is the standard GitHub CI approach for cross-repo pushes with PATs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a506b00 commit 92f36a0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/altimate-code/script/publish.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,12 @@ if (!Script.preview) {
131131
console.error("GITHUB_TOKEN is required to update homebrew tap")
132132
process.exit(1)
133133
}
134+
const tapUrl = `https://x-access-token:${token}@github.com/AltimateAI/homebrew-tap.git`
134135
await $`rm -rf ./dist/homebrew-tap`
135-
await $`git clone https://github.com/AltimateAI/homebrew-tap.git ./dist/homebrew-tap`
136+
await $`git clone ${tapUrl} ./dist/homebrew-tap`
136137
await Bun.file("./dist/homebrew-tap/altimate-code.rb").write(homebrewFormula)
137138
await $`cd ./dist/homebrew-tap && git config user.name "AltimateAI Bot"`
138139
await $`cd ./dist/homebrew-tap && git config user.email "bot@altimate.ai"`
139-
// Set auth header in local git config (not exposed in process args)
140-
await $`cd ./dist/homebrew-tap && git config http.extraHeader "Authorization: Bearer ${token}"`
141140
await $`cd ./dist/homebrew-tap && git add altimate-code.rb`
142141
await $`cd ./dist/homebrew-tap && git commit -m "Update to v${Script.version}"`
143142
await $`cd ./dist/homebrew-tap && git push`

0 commit comments

Comments
 (0)