From c89583e0a1f1f371a2279388a68dfa95fa946630 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 10 Dec 2025 01:03:35 +0100 Subject: [PATCH] Use HTTPS in `compose-fetcher.js` to remove SSH authentication requirement The repository is public and is only accessed for reading, so it doesn't need SSH to be cloned. --- build/utils/compose-fetcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/utils/compose-fetcher.js b/build/utils/compose-fetcher.js index 367c0e1..35b48f7 100644 --- a/build/utils/compose-fetcher.js +++ b/build/utils/compose-fetcher.js @@ -28,7 +28,7 @@ class DataFetcher { this.data_owner = data_owner; this.data_repo = data_repo; - this.repo_ssh_path = `git@github.com:${data_owner}/${data_repo}.git`; + this.git_repo_path = `https://github.com/${data_owner}/${data_repo}.git`; this.api_rest_path = `https://api.github.com/repos/${data_owner}/${data_repo}`; this.api_repository_id = `owner:"${data_owner}" name:"${data_repo}"`; } @@ -81,7 +81,7 @@ class DataFetcher { await buildCommon.clearDir("./temp"); // Checkout a shallow clone of the repository; we are only interested in its history. - await exec(`git clone --filter=tree:0 --branch ${fromTag} --single-branch ${this.repo_ssh_path}`, { cwd: "./temp", maxBuffer: EXEC_MAX_BUFFER }); + await exec(`git clone --filter=tree:0 --branch ${fromTag} --single-branch ${this.git_repo_path}`, { cwd: "./temp", maxBuffer: EXEC_MAX_BUFFER }); if (fromTag !== atCommit) { await exec(`git reset --hard ${atCommit}`, { cwd: `./temp/${this.data_repo}`, maxBuffer: EXEC_MAX_BUFFER }); }