From 24234a731bc4280f84b3c863abcea64d83d545df Mon Sep 17 00:00:00 2001 From: Matt Devy <32791943+MattDevy@users.noreply.github.com> Date: Fri, 10 Jul 2026 10:28:26 +0100 Subject: [PATCH] ci: add x-access-token user to make.sh script Codegen is failing since switching to ephemeral tokens with `fatal: could not read Password for 'https://***@github.com': No such device or address` This is working for [elasticsearch-js](https://github.com/elastic/elasticsearch-js/blob/4b336837419c49d3faee6ac34dbf7e3f10e7df80/.github/make.sh#L179) which uses `https://x-access-token:$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-js.git` (cherry picked from commit 5337e752b36c99e94abf0e62c449c8693b322c63) --- .github/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/make.sh b/.github/make.sh index 9415bb498..dc11f95e5 100755 --- a/.github/make.sh +++ b/.github/make.sh @@ -202,7 +202,7 @@ if [[ "$CMD" == "codegen" ]]; then --rm -v $repo:/code/elasticsearch-php \ $product \ /bin/bash -x -c "cd /code && mkdir codegen && \ - git clone https://$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-php.git && \ + git clone https://x-access-token:$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-php.git && \ cd /code/elastic-client-generator-php && composer install && \ bin/elasticsearch9.php $ES_VERSION $BRANCH /code/codegen config/elasticsearch9.json && \ cp /code/codegen/Elastic/Elasticsearch/Endpoints/* /code/elasticsearch-php/src/Endpoints/ && \