Skip to content

Commit

Permalink
Merge pull request #1 from traverseda/traverseda-patch-1
Browse files Browse the repository at this point in the history
Don't assume protocol is HTTPS
  • Loading branch information
traverseda authored Oct 19, 2024
2 parents ababa3d + 7f0cd66 commit c85f3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/set-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ This operation is prohibited to protect your contents
}
}

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

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

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

0 comments on commit c85f3d1

Please sign in to comment.