1
Fork 0
mirror of https://gitea.com/actions/checkout.git synced 2024-12-22 15:25:46 +01:00

Revert "change username"

This reverts commit 3a9da09f91.
This commit is contained in:
Julius Lehmann 2024-05-30 10:24:17 +02:00
parent 3a9da09f91
commit ae49bf56b1
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
const serverUrl = urlHelper.getServerUrl(this.settings.githubServerUrl);
this.tokenConfigKey = `credential.${serverUrl.origin}/.helper`; // "origin" is SCHEME://HOSTNAME[:PORT]
serverUrl.username = `git`;
serverUrl.username = `x-access-token`;
serverUrl.password = this.settings.authToken;
this.tokenCredential = serverUrl.href;
// Instead of SSH URL

View file

@ -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 = `git`
serverUrl.username = `x-access-token`
serverUrl.password = this.settings.authToken
this.tokenCredential = serverUrl.href