mirror of
https://github.com/actions/checkout.git
synced 2026-02-01 06:06:30 +00:00
Also rewrite ssh:// URLs
Like `git@server:` URLs, also rewrite `ssh://git@server/` URLs
This commit is contained in:
parent
0c366fd6a8
commit
1521eda098
@ -66,6 +66,7 @@ class GitAuthHelper {
|
||||
// Instead of SSH URL
|
||||
this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf` // "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
this.insteadOfValues.push(`git@${serverUrl.hostname}:`)
|
||||
this.insteadOfValues.push(`ssh://git@${serverUrl.hostname}/`)
|
||||
if (this.settings.workflowOrganizationId) {
|
||||
this.insteadOfValues.push(
|
||||
`org-${this.settings.workflowOrganizationId}@github.com:`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user