Skip to content

Commit

Permalink
Add APIScan
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKirakosyan committed Mar 18, 2024
1 parent 8f2b84e commit 9b4ac04
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .azurepipelines/build-shared-ios-1ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,36 @@ extends:
inputs:
SourceFolder: $(Build.SourcesDirectory)/AppCenterReactNativeShared/Products/
Contents: AppCenter-SDK-ReactNative-iOS-Pod-*.zip
TargetFolder: $(Build.ArtifactStagingDirectory)
TargetFolder: $(Build.ArtifactStagingDirectory)

- stage: APIScan
dependsOn: Stage
pool:
name: 1ES-PT-Windows-2022
os: windows
variables:
"agent.source.skip": true
jobs:
- job: APIScan
steps:
- task: DownloadPipelineArtifact@2
displayName: Download Build Artifacts for APIScan
inputs:
artifactName: zip
- task: AzureKeyVault@2
inputs:
azureSubscription: 'AC - Dev Infra & Build Pool'
KeyVaultName: 'mobile-center-sdk'
SecretsFilter: 'appcenter-sdk-managed-identity-clientid'
RunAsPreJob: false
- task: APIScan@2
displayName: 'Run APIScan'
inputs:
softwareFolder: '$(Agent.BuildDirectory)\zip'
softwareName: 'appcenter-sdk-react-native'
softwareVersionNum: Latest
isLargeApp: false
verbosityLevel: verbose
condition: and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
env:
AzureServicesAuthConnectionString: 'runAs=App;AppId=$(appcenter-sdk-managed-identity-clientid)'

0 comments on commit 9b4ac04

Please sign in to comment.