1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-07-12 08:40:45 +00:00

add support for gist.github.com

This commit is contained in:
Daniel Hwang 2020-05-29 15:57:30 -07:00
parent aabbfeb2ce
commit ec00d65c65
No known key found for this signature in database
GPG key ID: 678563C9BB0E60C0
9 changed files with 69 additions and 16 deletions

View file

@ -51,7 +51,7 @@ class GitAuthHelper {
this.settings = gitSourceSettings || (({} as unknown) as IGitSourceSettings)
// Token auth header
const serverUrl = urlHelper.getServerUrl()
const serverUrl = urlHelper.getServerUrl(this.settings.isGist)
this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader` // "origin" is SCHEME://HOSTNAME[:PORT]
const basicCredential = Buffer.from(
`x-access-token:${this.settings.authToken}`,