Reverted change to preparer function to use Git.fromAuth({ logger }) when the credentials provider can not get a token
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user