From 25098b494da66b6700529e6e80b741b008b34ece Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sat, 29 Mar 2025 21:27:46 +0300 Subject: [PATCH] Update --- .github/workflows/test.yml | 7 ------- dist/index.js | 7 ++++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cde9f06..9ac4b42 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -169,16 +169,9 @@ jobs: - name: Remove basic if: runner.os != 'windows' run: rm -rf basic - - name: Remove basic (Windows) - if: runner.os == 'windows' - shell: cmd - run: rmdir /s /q basic - name: Override git version if: runner.os != 'windows' run: __test__/override-git-version.sh - - name: Override git version (Windows) - if: runner.os == 'windows' - run: __test__\\override-git-version.cmd - name: Checkout basic using REST API uses: ./ with: diff --git a/dist/index.js b/dist/index.js index b0db713..708bfb9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -168,12 +168,17 @@ class GitAuthHelper { const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl); this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT] const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64'); + console.log('basicCredential:', basicCredential) + console.log('tokenConfigKey:', this.tokenConfigKey) core.setSecret(basicCredential); this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`; this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`; + console.log('tokenConfigValue:', this.tokenConfigValue) // Instead of SSH URL this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT] this.insteadOfValues.push(`git@${serverUrl.hostname}:`); + console.log('insteadOfKey:', this.insteadOfKey) + console.log('insteadOfValues:', this.insteadOfValues) if (this.settings.workflowOrganizationId) { this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`); } @@ -38215,4 +38220,4 @@ module.exports = parseParams /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +;