Skip to content

Commit c0e5d9f

Browse files
Also updates local Azure queries
1 parent 41dc42a commit c0e5d9f

File tree

1 file changed

+5
-1
lines changed
  • src/plus/integrations/providers/azure

1 file changed

+5
-1
lines changed

src/plus/integrations/providers/azure/azure.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { Logger } from '../../../../system/logger';
2424
import type { LogScope } from '../../../../system/logger.scope';
2525
import { getLogScope } from '../../../../system/logger.scope';
2626
import { maybeStopWatch } from '../../../../system/stopwatch';
27+
import { base64 } from '../../../../system/string';
2728
import 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,

0 commit comments

Comments
 (0)