File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/plus/integrations/providers/azure Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { Logger } from '../../../../system/logger';
2424import type { LogScope } from '../../../../system/logger.scope' ;
2525import { getLogScope } from '../../../../system/logger.scope' ;
2626import { maybeStopWatch } from '../../../../system/stopwatch' ;
27+ import { base64 } from '../../../../system/string' ;
2728import type {
2829 AzureProjectDescriptor ,
2930 AzurePullRequest ,
@@ -334,7 +335,10 @@ export class AzureDevOpsApi implements Disposable {
334335
335336 rsp = await wrapForForcedInsecureSSL ( provider . getIgnoreSSLErrors ( ) , ( ) =>
336337 fetch ( url , {
337- headers : { Authorization : `Bearer ${ token } ` , 'Content-Type' : 'application/json' } ,
338+ headers : {
339+ Authorization : `Basic ${ base64 ( `PAT:${ token } ` ) } ` ,
340+ 'Content-Type' : 'application/json' ,
341+ } ,
338342 agent : agent ,
339343 signal : aborter ?. signal ,
340344 ...options ,
You can’t perform that action at this time.
0 commit comments