Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enable api scan pipeline #11506

Merged
merged 6 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)'