fix(ci): configure git auth for homebrew-tap push (#326)

Set remote URL with x-access-token so git push can authenticate
to the homebrew-tap repository using HOMEBREW_TAP_TOKEN.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-02-05 01:45:55 +00:00 committed by GitHub
parent 1cb30d2b69
commit 313d6a1cd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,8 +171,11 @@ jobs:
LINUX_AMD64=$(cat dist/core-linux-amd64.tar.gz.sha256)
LINUX_ARM64=$(cat dist/core-linux-arm64.tar.gz.sha256)
# Clone tap repo
# Clone tap repo (configure auth for push)
gh repo clone host-uk/homebrew-tap /tmp/tap -- --depth=1
cd /tmp/tap
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/host-uk/homebrew-tap.git"
cd -
mkdir -p /tmp/tap/Formula
# Write formula