Skip to content

Commit 43dffaa

Browse files
authored
ci: add x-access-token user to make.sh script (#1612)
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 5337e75)
1 parent bf9f7c8 commit 43dffaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ if [[ "$CMD" == "codegen" ]]; then
193193
--rm -v $repo:/code/elasticsearch-php \
194194
$product \
195195
/bin/bash -x -c "cd /code && mkdir codegen && \
196-
git clone https://$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-php.git && \
196+
git clone https://x-access-token:$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-php.git && \
197197
cd /code/elastic-client-generator-php && composer install && \
198198
bin/elasticsearch9.php $ES_VERSION $BRANCH /code/codegen config/elasticsearch9.json && \
199199
find /code/elasticsearch-php/src/Endpoints/ -name "*.php" -not -name AbstractEndpoint.php -exec rm {} \;

0 commit comments

Comments
 (0)