File tree Expand file tree Collapse file tree 1 file changed +39
-1
lines changed
Expand file tree Collapse file tree 1 file changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -63,4 +63,42 @@ extends:
6363 archiveFile : ' $(Build.ArtifactStagingDirectory)/npm/$(Build.BuildId).tgz'
6464 replaceExistingArchive : true
6565 verbose : true
66- displayName : ' Prepare npm artifact'
66+ displayName : ' Prepare npm artifact'
67+
68+ - stage : APIScan
69+ dependsOn : Stage
70+ pool :
71+ name : 1ES-PT-Windows-2022
72+ os : windows
73+ variables :
74+ " agent.source.skip " : true
75+ jobs :
76+ - job : APIScan
77+ steps :
78+ - task : DownloadPipelineArtifact@2
79+ displayName : Download Build Artifacts for APIScan
80+ inputs :
81+ artifactName : npm
82+ targetPath : ' $(Agent.BuildDirectory)/npm'
83+ - task : ExtractFiles@1
84+ inputs :
85+ archiveFilePatterns : ' $(Agent.BuildDirectory)/npm/*.tgz'
86+ destinationFolder : ' $(Agent.BuildDirectory)/npm_extracted'
87+ - task : AzureKeyVault@2
88+ inputs :
89+ azureSubscription : ' AC - Dev Infra & Build Pool'
90+ KeyVaultName : ' mobile-center-sdk'
91+ SecretsFilter : ' appcenter-sdk-managed-identity-clientid'
92+ RunAsPreJob : false
93+ - task : APIScan@2
94+ displayName : ' Run APIScan'
95+ inputs :
96+ softwareFolder : ' $(Agent.BuildDirectory)\npm_extracted'
97+ softwareName : ' react-native-code-push'
98+ softwareVersionNum : ' $(Build.BuildId)'
99+ isLargeApp : false
100+ toolVersion : ' Latest'
101+ verbosityLevel : verbose
102+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
103+ env :
104+ AzureServicesAuthConnectionString : ' runAs=App;AppId=$(appcenter-sdk-managed-identity-clientid)'
You can’t perform that action at this time.
0 commit comments