Skip to content

Commit fde44d0

Browse files
committed
ci: disable base64 line-wrapping when building gh-pages push auth header
The new stateless GITHUB_TOKEN format (~520 chars, rolled out from April 27, 2026) makes the encoded AUTHORIZATION header exceed base64's default 76-column wrap, embedding newlines that corrupt the header and fail the push with 'Failed sending HTTP request'. Assisted-by: Claude Code:claude-fable-5 Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
1 parent 3840288 commit fde44d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,6 @@ jobs:
181181
git commit -m "chore: update site for ${GITHUB_REF_NAME}"
182182
git remote set-url origin "https://github.com/${GITHUB_REPOSITORY}.git" 2>/dev/null \
183183
|| git remote add origin "https://github.com/${GITHUB_REPOSITORY}.git"
184-
auth_header=$(printf "x-access-token:%s" "${GITHUB_TOKEN}" | base64)
184+
auth_header=$(printf "x-access-token:%s" "${GITHUB_TOKEN}" | base64 -w0)
185185
git -c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" push origin gh-pages
186186
fi

0 commit comments

Comments
 (0)