mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Guard against blank auth value
This shouldn't be possible, but was previously handled by the library
This commit is contained in:
@@ -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