Skip to content

Commit

Permalink
Update VSCode-Spring-Boot-Dashboard-Nightly.yml to enable api scan
Browse files Browse the repository at this point in the history
  • Loading branch information
testforstephen committed Mar 25, 2024
1 parent c4f5d34 commit b9929dd
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .azp/VSCode-Spring-Boot-Dashboard-Nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,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 @@ -71,7 +71,7 @@ extends:
- task: CmdLine@2
displayName: Replace AI Key
inputs:
script: npx [email protected] -I -f package.json -e "this.aiKey=\"$AI_KEY\""
script: npx [email protected] -I -f package.json -e "this.aiKey=\"%AI_KEY%\""
- bash: |
npx json@latest -I -f package.json -e "this.version=this.version.substring(0, this.version.lastIndexOf('.'))+\".$(date -u +'%Y%m%d%H')\""
displayName: Update patch version in package.json
Expand All @@ -86,6 +86,25 @@ extends:
command: custom
verbose: false
customCommand: run test
### 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-spring-boot-dashboard"
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)'
inputs:
Expand Down

0 comments on commit b9929dd

Please sign in to comment.