Merge pull request #171 from sharwell/api-scan
Switch APIScan to use a managed identity
This commit is contained in:
Коммит
0b36151638
|
@ -20,7 +20,7 @@ jobs:
|
|||
variables:
|
||||
- ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
|
||||
# https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/25351/APIScan-step-by-step-guide-to-setting-up-a-Pipeline
|
||||
- group: VSCloudServices-APIScan # Expected to provide ApiScanClientId, ApiScanSecret, ApiScanTenant
|
||||
- group: VSEng sponsored APIScan # Expected to provide ApiScanClientId
|
||||
steps:
|
||||
- checkout: self
|
||||
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
|
|
|
@ -47,7 +47,7 @@ steps:
|
|||
toolVersion: Latest
|
||||
condition: and(succeeded(), ${{ parameters.EnableAPIScan }}, ne(variables.ApiScanClientId, ''))
|
||||
env:
|
||||
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
|
||||
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId)
|
||||
|
||||
- task: SdtReport@2
|
||||
displayName: 📃 Create Security Analysis Report
|
||||
|
|
Загрузка…
Ссылка в новой задаче