fix: configure git auth for tag push in release job
All checks were successful
CI / test (push) Successful in 1m34s
CI / release (push) Successful in 35s
CI / docker (push) Successful in 2m22s

The manual git clone doesn't set up HTTPS credentials like
actions/checkout did. Configure the extraheader with GITHUB_TOKEN
so git push can authenticate when creating release tags.
This commit is contained in:
Stefano Bertelli 2026-03-30 21:47:25 -05:00
parent 1fc80b9c0a
commit 2eb35e94e9

View file

@ -59,6 +59,9 @@ jobs:
apt-get update && apt-get install -y --no-install-recommends bash git python3 ca-certificates
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
git checkout ${GITHUB_SHA}
git config --local http.${GITHUB_SERVER_URL}/.extraheader "AUTHORIZATION: basic $(echo -n "x-access-token:${GITHUB_TOKEN}" | base64 -w0)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Determine version bump
id: version