77 displayName : APIScan
88 dependsOn : Windows
99 pool : ${{ parameters.windowsPool }}
10+ timeoutInMinutes : 120
11+ templateContext :
12+ outputs :
13+ - output : pipelineArtifact
14+ displayName : 📢 collect apiscan artifact
15+ targetPath : $(Pipeline.Workspace)/.gdn/.r/apiscan/001/Logs
16+ artifactName : apiscan-logs
1017 variables :
1118 - name : SymbolsFeatureName
1219 value : $[ dependencies.Windows.outputs['SetPipelineVariables.SymbolsFeatureName'] ]
1320 - name : NBGV_MajorMinorVersion
1421 value : $[ dependencies.Windows.outputs['nbgv.NBGV_MajorMinorVersion'] ]
1522 - ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }} :
1623 # https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/25351/APIScan-step-by-step-guide-to-setting-up-a-Pipeline
17- - group : VSExtensibility- APIScan # Expected to provide ApiScanClientId, ApiScanSecret, ApiScanTenant
24+ - group : VSEng sponsored APIScan # Expected to provide ApiScanClientId
1825 steps :
1926 # We need TSAOptions.json
2027 - checkout : self
@@ -32,12 +39,14 @@ jobs:
3239 softwareVersionNum : $(NBGV_MajorMinorVersion)
3340 isLargeApp : false
3441 toolVersion : Latest
42+ preserveLogsFolder : true
3543 env :
36- AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
44+ AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId)
3745
3846 # File bugs when APIScan finds issues
3947 - task : TSAUpload@2
4048 displayName : 🪳 TSA upload
4149 inputs :
4250 GdnPublishTsaOnboard : True
4351 GdnPublishTsaConfigFile : $(Build.SourcesDirectory)\azure-pipelines\TSAOptions.json
52+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
0 commit comments