From a66533f8e5e0264f9460282ea06574b9c1544f7e Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Tue, 10 Dec 2024 23:05:38 +0300 Subject: [PATCH] Use installation access token properly --- tools/merge-upstream/merge_upstream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/merge-upstream/merge_upstream.py b/tools/merge-upstream/merge_upstream.py index 3ddf79ebe6d7..62eb7690f241 100644 --- a/tools/merge-upstream/merge_upstream.py +++ b/tools/merge-upstream/merge_upstream.py @@ -79,9 +79,9 @@ def run_command(command) -> str: def setup_repo(): """Clone the repository and set up the upstream remote.""" print(f"Cloning repository: {TARGET_REPO}") - run_command(f"git clone https://{GITHUB_TOKEN}@github.com/{TARGET_REPO}.git repo") + run_command(f"git clone https://x-access-token:{GITHUB_TOKEN}@github.com/{TARGET_REPO}.git repo") os.chdir("repo") - run_command(f"git remote add upstream https://{GITHUB_TOKEN}@github.com/{UPSTREAM_REPO}.git") + run_command(f"git remote add upstream https://x-access-token:{GITHUB_TOKEN}@github.com/{UPSTREAM_REPO}.git") print(run_command(f"git remote -v"))