mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Do not pass undefined authorization header
This commit is contained in:
@@ -178,7 +178,8 @@ async function downloadAndExtractZstdWithStreaming(
|
||||
logger: Logger,
|
||||
): Promise<string> {
|
||||
headers = Object.assign(
|
||||
{ "User-Agent": "CodeQL Action", authorization },
|
||||
{ "User-Agent": "CodeQL Action" },
|
||||
authorization ? { authorization } : {},
|
||||
headers,
|
||||
);
|
||||
const response = await new Promise<IncomingMessage>((resolve) =>
|
||||
|
||||
Reference in New Issue
Block a user