From 9bb132868f35ee2460c150479b97861d2c6c2db9 Mon Sep 17 00:00:00 2001 From: Dmitriy Kirakosyan Date: Mon, 18 Mar 2024 15:01:28 +0700 Subject: [PATCH] Add APIScan --- .azurepipelines/build-shared-ios-1ES.yml | 35 +++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.azurepipelines/build-shared-ios-1ES.yml b/.azurepipelines/build-shared-ios-1ES.yml index f784dacfe..0ddc62353 100644 --- a/.azurepipelines/build-shared-ios-1ES.yml +++ b/.azurepipelines/build-shared-ios-1ES.yml @@ -84,4 +84,37 @@ extends: inputs: SourceFolder: $(Build.SourcesDirectory)/AppCenterReactNativeShared/Products/ Contents: AppCenter-SDK-ReactNative-iOS-Pod-*.zip - TargetFolder: $(Build.ArtifactStagingDirectory) \ No newline at end of file + 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 + targetPath: '$(Agent.BuildDirectory)/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)' \ No newline at end of file