From f176eb7ea1ebf2f449968f902f89c16775c13340 Mon Sep 17 00:00:00 2001 From: Olivia Campbell Date: Sun, 28 Jun 2026 20:49:09 -0500 Subject: [PATCH] fix: put docs token in password slot so git push authenticates The clone URL placed the token in the username slot with no password, so git push prompted for a password and failed on CI (exit 128). Use x-access-token: so the token lands in the password slot. --- scripts/generate-docs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generate-docs.sh b/scripts/generate-docs.sh index d7d00092b..761e84937 100755 --- a/scripts/generate-docs.sh +++ b/scripts/generate-docs.sh @@ -17,7 +17,10 @@ go run -tags "containers_image_ostree_stub exclude_graphdriver_devicemapper excl # Clone replicated-docs DOCS_DIR="/tmp/replicated-docs" rm -rf "${DOCS_DIR}" -git clone --depth 1 "https://${GITHUB_TOKEN}@github.com/replicatedhq/replicated-docs.git" "${DOCS_DIR}" +# Token goes in the password slot (with a dummy username) so git authenticates +# the push non-interactively. Without "x-access-token:", the token lands in the +# username slot with no password and git prompts for one, which fails on CI. +git clone --depth 1 "https://x-access-token:${GITHUB_TOKEN}@github.com/replicatedhq/replicated-docs.git" "${DOCS_DIR}" cd "${DOCS_DIR}" git config user.email "release@replicated.com"