change username

This commit is contained in:
Julius Lehmann 2024-05-28 13:29:11 +02:00
parent 687da9f3dc
commit 3a9da09f91
No known key found for this signature in database
GPG key ID: 12B64BBC42D04103
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -170,7 +170,7 @@ class GitAuthHelper {
// Token auth header // Token auth header
const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl); const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl);
this.tokenConfigKey = `credential.${serverUrl.origin}/.helper`; // "origin" is SCHEME://HOSTNAME[:PORT] this.tokenConfigKey = `credential.${serverUrl.origin}/.helper`; // "origin" is SCHEME://HOSTNAME[:PORT]
serverUrl.username = `x-access-token`; serverUrl.username = `git`;
serverUrl.password = this.settings.authToken; serverUrl.password = this.settings.authToken;
this.tokenCredential = serverUrl.href; this.tokenCredential = serverUrl.href;
// Instead of SSH URL // Instead of SSH URL

View file

@ -54,7 +54,7 @@ class GitAuthHelper {
// Token auth header // Token auth header
const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl) const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl)
this.tokenConfigKey = `credential.${serverUrl.origin}/.helper` // "origin" is SCHEME://HOSTNAME[:PORT] this.tokenConfigKey = `credential.${serverUrl.origin}/.helper` // "origin" is SCHEME://HOSTNAME[:PORT]
serverUrl.username = `x-access-token` serverUrl.username = `git`
serverUrl.password = this.settings.authToken serverUrl.password = this.settings.authToken
this.tokenCredential = serverUrl.href this.tokenCredential = serverUrl.href