Skip to content

Commit c85f3d1

Browse files
authored
Merge pull request #1 from traverseda/traverseda-patch-1
Don't assume protocol is HTTPS
2 parents ababa3d + 7f0cd66 commit c85f3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/set-tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ This operation is prohibited to protect your contents
9797
}
9898
}
9999

100-
return `https://x-access-token:${githubToken}@${getServerUrl().host}/${publishRepo}.git`;
100+
return `${getServerUrl().host}//x-access-token:${githubToken}@${getServerUrl().host}/${publishRepo}.git`;
101101
}
102102

103103
export function setPersonalToken(personalToken: string, publishRepo: string): string {
104104
core.info('[INFO] setup personal access token');
105-
return `https://x-access-token:${personalToken}@${getServerUrl().host}/${publishRepo}.git`;
105+
return `${getServerUrl().host}//x-access-token:${personalToken}@${getServerUrl().host}/${publishRepo}.git`;
106106
}
107107

108108
export function getPublishRepo(externalRepository: string, owner: string, repo: string): string {

0 commit comments

Comments
 (0)