Skip to content

Commit ebbe050

Browse files
committed
Do not pass undefined authorization header
1 parent acb9cb1 commit ebbe050

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/tools-download.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tools-download.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tools-download.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ async function downloadAndExtractZstdWithStreaming(
178178
logger: Logger,
179179
): Promise<string> {
180180
headers = Object.assign(
181-
{ "User-Agent": "CodeQL Action", authorization },
181+
{ "User-Agent": "CodeQL Action" },
182+
authorization ? { authorization } : {},
182183
headers,
183184
);
184185
const response = await new Promise<IncomingMessage>((resolve) =>

0 commit comments

Comments
 (0)