Skip to content

Commit 9884bd0

Browse files
authored
[ci] Use managed identity for ApiScan (#8823)
I've configured a new [managed identity][0] (MSI) for API Scan, which allows us to enable a more modern authentication approach when running API Scan on the `MAUI-1ESPT` agent pool. A new `$(ApiScanMAUI1ESPTManagedId)` variable has been configured in the pipeline settings to pass the app ID for this MSI to the API Scan task. [0]: https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/cd4829e2-e38b-43d2-8316-2f2009f36f97/resourcegroups/1esobjects/providers/microsoft.managedidentity/userassignedidentities/maui1esptapiscanidentity/overview
1 parent d798cc9 commit 9884bd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-tools/automation/azure-pipelines-nightly.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ stages:
289289
- job: api_scan
290290
displayName: API Scan
291291
pool:
292-
name: Azure Pipelines
293-
vmImage: windows-2022
292+
name: MAUI-1ESPT
293+
demands: ImageOverride -equals $(WindowsPoolImage1ESPT)
294294
timeoutInMinutes: 480
295295
workspace:
296296
clean: all
@@ -335,7 +335,7 @@ stages:
335335
isLargeApp: true
336336
toolVersion: Latest
337337
env:
338-
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
338+
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanMAUI1ESPTManagedId)
339339

340340
- task: SdtReport@2
341341
displayName: Guardian Export - Security Report

0 commit comments

Comments
 (0)