Skip to content

Commit 8907351

Browse files
authored
Merge pull request #2 from Soomgo-Mobile/sync-8.2.2
Sync to upstream (react-native-code-push@8.2.2)
2 parents f2e7349 + b3ed2e4 commit 8907351

File tree

10 files changed

+5124
-1690
lines changed

10 files changed

+5124
-1690
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)