mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08: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