We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d827cf3 commit c20a90aCopy full SHA for c20a90a
src/codeql.ts
@@ -488,6 +488,7 @@ export async function setupCodeQL(
488
}
489
490
const parsedCodeQLURL = new URL(codeqlURL);
491
+ const searchParams = new URLSearchParams(parsedCodeQLURL.search);
492
const headers: OutgoingHttpHeaders = {
493
accept: "application/octet-stream",
494
};
@@ -497,7 +498,7 @@ export async function setupCodeQL(
497
498
// We also don't want to send an authorization header if there's already a token provided in the URL.
499
if (
500
codeqlURL.startsWith(`${apiDetails.url}/`) &&
- new URLSearchParams(parsedCodeQLURL.search).get("token") === undefined
501
+ !searchParams.has("token")
502
) {
503
logger.debug("Downloading CodeQL bundle with token.");
504
headers.authorization = `token ${apiDetails.auth}`;
0 commit comments