Skip to content

Commit 1036e04

Browse files
committed
Make externalRepoAuth check more consistent
1 parent 654f5d9 commit 1036e04

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/api-client.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ function createApiClientWithDetails(
131131
{ allowExternal = false, proxy = undefined }: CreateApiClientOptions = {},
132132
): ApiClient {
133133
const auth =
134-
(allowExternal && apiDetails.externalRepoAuth) || apiDetails.auth;
134+
allowExternal && apiDetails.externalRepoAuth !== undefined
135+
? apiDetails.externalRepoAuth
136+
: apiDetails.auth;
135137
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
136138
const requestOptions = makeProxyRequestOptions(proxy);
137139

0 commit comments

Comments
 (0)