From 885eb04ba6ab3a278cdee2bbd76fac0540bd8ad8 Mon Sep 17 00:00:00 2001 From: Hasko Date: Sun, 7 Jun 2026 10:31:55 +0200 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=F0=9F=94=A7=20Fix=20release=20pus?= =?UTF-8?q?h=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23d3e46..25fcf97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -222,9 +222,11 @@ jobs: git tag -a "v${NEXT_VERSION}" -m "Release v${NEXT_VERSION} for #${PR_NUMBER}" fi - auth_header="AUTHORIZATION: bearer ${GITHUB_TOKEN}" - git -c http.https://github.com/.extraheader="$auth_header" push origin "HEAD:${BASE_BRANCH}" - git -c http.https://github.com/.extraheader="$auth_header" push origin "v${NEXT_VERSION}" + auth_header="$( + node -e "process.stdout.write('AUTHORIZATION: basic ' + Buffer.from('x-access-token:' + process.env.GITHUB_TOKEN).toString('base64'))" + )" + git -c "http.https://github.com/.extraheader=$auth_header" push origin "HEAD:${BASE_BRANCH}" + git -c "http.https://github.com/.extraheader=$auth_header" push origin "v${NEXT_VERSION}" env: BASE_BRANCH: ${{ github.event.pull_request.base.ref }} NEXT_VERSION: ${{ steps.release.outputs.next_version }}