only insert external repos token if supplied
This commit is contained in:
parent
b0adc415a0
commit
cb574a7d60
13 changed files with 92 additions and 23 deletions
3
lib/runner.js
generated
3
lib/runner.js
generated
|
|
@ -96,7 +96,6 @@ program
|
|||
// Remove this if commander.js starts supporting hidden options.
|
||||
.allowUnknownOption()
|
||||
.action(async (cmd) => {
|
||||
var _a;
|
||||
const logger = logging_1.getRunnerLogger(cmd.debug);
|
||||
try {
|
||||
const tempDir = getTempDir(cmd.tempDir);
|
||||
|
|
@ -107,7 +106,7 @@ program
|
|||
fs.mkdirSync(tempDir, { recursive: true });
|
||||
const apiDetails = {
|
||||
auth: cmd.githubAuth,
|
||||
externalRepoAuth: (_a = cmd.externalRepositoryToken, (_a !== null && _a !== void 0 ? _a : cmd.githubAuth)),
|
||||
externalRepoAuth: cmd.externalRepositoryToken,
|
||||
url: util_1.parseGithubUrl(cmd.githubUrl),
|
||||
};
|
||||
const gitHubVersion = await util_1.getGitHubVersion(apiDetails);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue