diff --git a/dist/index.js b/dist/index.js index 5978ceb..b1cc8bc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -170,7 +170,7 @@ class GitAuthHelper { // Token auth header const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl); this.tokenConfigKey = `credential.${serverUrl.origin}/.helper`; // "origin" is SCHEME://HOSTNAME[:PORT] - serverUrl.username = `x-access-token`; + serverUrl.username = `git`; serverUrl.password = this.settings.authToken; this.tokenCredential = serverUrl.href; // Instead of SSH URL diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index 606e999..8bfa6c5 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -54,7 +54,7 @@ class GitAuthHelper { // Token auth header const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl) this.tokenConfigKey = `credential.${serverUrl.origin}/.helper` // "origin" is SCHEME://HOSTNAME[:PORT] - serverUrl.username = `x-access-token` + serverUrl.username = `git` serverUrl.password = this.settings.authToken this.tokenCredential = serverUrl.href