mirror of
http://gitea.com/actions/checkout
synced 2024-11-30 21:22:26 +08:00
parent
3a9da09f91
commit
ae49bf56b1
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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 = `git`;
|
serverUrl.username = `x-access-token`;
|
||||||
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
|
||||||
|
@ -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 = `git`
|
serverUrl.username = `x-access-token`
|
||||||
serverUrl.password = this.settings.authToken
|
serverUrl.password = this.settings.authToken
|
||||||
this.tokenCredential = serverUrl.href
|
this.tokenCredential = serverUrl.href
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user