Skip to content

Commit

Permalink
Add APIScan
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKirakosyan committed Mar 28, 2024
1 parent 4cb417a commit 3967127
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .azurepipelines/publish-maven-1ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,38 @@ extends:
FolderLocation: $(Build.ArtifactStagingDirectory)/com/microsoft
Owners: lucen@microsoft.com
Approvers: lucen@microsoft.com
enabled: false
enabled: false

- 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: Release
targetPath: '$(Agent.BuildDirectory)/Release'
- 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)\Release'
softwareName: 'appcenter-sdk-android'
softwareVersionNum: '$(Build.BuildId)'
isLargeApp: false
toolVersion: 'Latest'
verbosityLevel: verbose
condition: and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
env:
AzureServicesAuthConnectionString: 'runAs=App;AppId=$(appcenter-sdk-managed-identity-clientid)'

0 comments on commit 3967127

Please sign in to comment.