diff --git a/dist/index.js b/dist/index.js index 8d5f851d..b5ba506c 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 21d05ddf..b6f2aea5 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/remote-client/index.ts b/src/model/cloud-runner/remote-client/index.ts index dc7808dc..6a54771e 100644 --- a/src/model/cloud-runner/remote-client/index.ts +++ b/src/model/cloud-runner/remote-client/index.ts @@ -236,16 +236,10 @@ export class RemoteClient { await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf || true`); await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf || true`); - // Set new URL configuration with token + // Set new URL configuration with token for HTTPS await CloudRunnerSystem.Run( `git config --global url."https://${gitPrivateToken}@github.com/".insteadOf "https://github.com/"`, ); - await CloudRunnerSystem.Run( - `git config --global url."https://${gitPrivateToken}@github.com/".insteadOf "ssh://git@github.com/"`, - ); - await CloudRunnerSystem.Run( - `git config --global url."https://${gitPrivateToken}@github.com/".insteadOf "git@github.com"`, - ); await CloudRunnerSystem.Run(`git lfs pull`); RemoteClientLogger.log(`Successfully pulled LFS files with GIT_PRIVATE_TOKEN`); @@ -266,16 +260,10 @@ export class RemoteClient { await CloudRunnerSystem.Run(`git config --global --unset-all url."ssh://git@github.com/".insteadOf || true`); await CloudRunnerSystem.Run(`git config --global --unset-all url."git@github.com".insteadOf || true`); - // Set new URL configuration with token + // Set new URL configuration with token for HTTPS await CloudRunnerSystem.Run( `git config --global url."https://${githubToken}@github.com/".insteadOf "https://github.com/"`, ); - await CloudRunnerSystem.Run( - `git config --global url."https://${githubToken}@github.com/".insteadOf "ssh://git@github.com/"`, - ); - await CloudRunnerSystem.Run( - `git config --global url."https://${githubToken}@github.com/".insteadOf "git@github.com"`, - ); await CloudRunnerSystem.Run(`git lfs pull`); RemoteClientLogger.log(`Successfully pulled LFS files with GITHUB_TOKEN fallback`);