integrations: switch to using x-access-token for github git auth

This commit is contained in:
Patrik Oldsberg
2021-02-15 20:26:12 +01:00
parent 536dd3f9ce
commit fb28da2123
7 changed files with 26 additions and 20 deletions
+3 -3
View File
@@ -133,11 +133,11 @@ export const checkoutGitRepository = async (
switch (type) {
case 'github':
git = Git.fromAuth({
username: token,
password: 'x-oauth-basic',
username: 'x-access-token',
password: token,
logger,
});
parsedGitLocation.token = `${token}:x-oauth-basic`;
parsedGitLocation.token = `x-access-token:${token}`;
break;
case 'gitlab':
git = Git.fromAuth({