Reverted change to preparer function to use Git.fromAuth({ logger }) when the credentials provider can not get a token

This commit is contained in:
ebarrios
2021-02-16 19:50:56 +01:00
parent fdd33af1cf
commit cc2c047f15
@@ -46,11 +46,13 @@ export class GithubPreparer implements PreparerBase {
url,
});
const git = Git.fromAuth({
username: 'x-access-token',
password: token,
logger,
});
const git = token
? Git.fromAuth({
username: 'x-access-token',
password: token,
logger,
})
: Git.fromAuth({ logger });
await git.clone({
url: parsedGitUrl.toString('https'),