mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Guard against blank auth value
This shouldn't be possible, but was previously handled by the library
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -170736,7 +170736,7 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false, proxy =
|
||||
const retryingOctokit = githubUtils.GitHub.plugin(retry);
|
||||
const requestOptions = makeProxyRequestOptions(proxy);
|
||||
const opts = {
|
||||
auth: auth2 !== void 0 ? `token ${auth2}` : void 0,
|
||||
auth: auth2 !== void 0 && auth2.trim() !== "" ? `token ${auth2}` : void 0,
|
||||
baseUrl: apiDetails.apiURL,
|
||||
userAgent: `CodeQL-Action/${getActionVersion()}`,
|
||||
log: {
|
||||
|
||||
@@ -138,7 +138,8 @@ function createApiClientWithDetails(
|
||||
const requestOptions = makeProxyRequestOptions(proxy);
|
||||
|
||||
const opts: OctokitOptions = {
|
||||
auth: auth !== undefined ? `token ${auth}` : undefined,
|
||||
auth:
|
||||
auth !== undefined && auth.trim() !== "" ? `token ${auth}` : undefined,
|
||||
baseUrl: apiDetails.apiURL,
|
||||
userAgent: `CodeQL-Action/${getActionVersion()}`,
|
||||
log: {
|
||||
|
||||
Reference in New Issue
Block a user