Skip to content

Commit

Permalink
ci: enable api scan pipeline (#11506)
Browse files Browse the repository at this point in the history
* test: apiscan

* test: update

* ci: update

* ci: update aad app

* test: update

* ci: update
  • Loading branch information
wenytang-ms committed Apr 29, 2024
1 parent f43dc91 commit 4d54e2a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .azure-pipelines/apiscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ schedules:
include:
- dev

pool:
vmImage: windows-2019
pool: "$(POOLAGENT)"

steps:
- task: UseDotNet@2
Expand All @@ -24,7 +23,7 @@ steps:
arguments: '/p:Configuration=Release'

# Remove files that won't be released
- task: APIScan@3
- task: APIScan@2
displayName: 'Run APIScan'
inputs:
softwareFolder: 'packages/function-extension/src/bin/Release/netcoreapp3.1'
Expand All @@ -33,9 +32,9 @@ steps:
isLargeApp: false
verbosityLevel: 'none'
env:
AzureServicesAuthConnectionString: 'RunAs=App;AppId={335a8848-d80e-4963-93c7-a471d627936f of user-assigned identity}'
AzureServicesAuthConnectionString: 'RunAs=App;AppId=$(ApiScanClientId)'

- task: APIScan@3
- task: APIScan@2
displayName: 'Run APIScan on Microsoft.TeamsFx'
inputs:
softwareFolder: packages/dotnet-sdk/src/TeamsFx/bin/Release/net6.0
Expand All @@ -44,4 +43,4 @@ steps:
isLargeApp: false
verbosityLevel: 'none'
env:
AzureServicesAuthConnectionString: 'RunAs=App;AppId={f3b77a44-7963-4341-8e1f-b47e83ed007c of user-assigned identity}'
AzureServicesAuthConnectionString: 'RunAs=App;AppId=$(ApiScanClientId)'

0 comments on commit 4d54e2a

Please sign in to comment.