File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -488,6 +488,7 @@ export async function setupCodeQL(
488
488
}
489
489
490
490
const parsedCodeQLURL = new URL ( codeqlURL ) ;
491
+ const searchParams = new URLSearchParams ( parsedCodeQLURL . search ) ;
491
492
const headers : OutgoingHttpHeaders = {
492
493
accept : "application/octet-stream" ,
493
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.
498
499
if (
499
500
codeqlURL . startsWith ( `${ apiDetails . url } /` ) &&
500
- new URLSearchParams ( parsedCodeQLURL . search ) . get ( "token" ) === undefined
501
+ ! searchParams . has ( "token" )
501
502
) {
502
503
logger . debug ( "Downloading CodeQL bundle with token." ) ;
503
504
headers . authorization = `token ${ apiDetails . auth } ` ;
You can’t perform that action at this time.
0 commit comments