Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 6899e68

Browse files
[CI] Add APIScan (#2678)
* Add APIScan
1 parent c495ed4 commit 6899e68

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.azurepipelines/build-rn-code-push-1es.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff 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)'

0 commit comments

Comments
 (0)