Skip to content

Commit

Permalink
Update rc.yml for api scan
Browse files Browse the repository at this point in the history
  • Loading branch information
testforstephen committed Mar 1, 2024
1 parent 823db01 commit f7ec4ae
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .azure-pipelines/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
os: linux
name: 1ES_JavaTooling_Pool
image: 1ES_JavaTooling_Ubuntu-2004
image: 1ES_JavaTooling_Windows_2022
os: windows
sdl:
sourceAnalysisPool:
name: 1ES_JavaTooling_Pool
Expand Down Expand Up @@ -77,6 +77,25 @@ extends:
displayName: vsce package
inputs:
script: npx @vscode/vsce@latest package
### Copy files for APIScan
- task: CopyFiles@2
displayName: "Copy Files for APIScan"
inputs:
Contents: "*.vsix"
TargetFolder: $(Agent.TempDirectory)/APIScanFiles
condition: and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
### Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
- task: APIScan@2
displayName: Run APIScan
inputs:
softwareFolder: $(Agent.TempDirectory)/APIScanFiles
softwareName: "vscode-java-debug"
softwareVersionNum: "$(Build.BuildId)"
isLargeApp: false
toolVersion: "Latest"
condition: and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
env:
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
- task: CopyFiles@2
displayName: "Copy Files to: $(Build.ArtifactStagingDirectory)/vsix"
inputs:
Expand Down

0 comments on commit f7ec4ae

Please sign in to comment.