Add policheck to azure pipeline (#1371)

* Add policheck to azure pipeline

* policheck only runs on windows

* try without exclusions arg
This commit is contained in:
cheng-tan 2024-01-23 11:00:23 -05:00 committed by GitHub
parent 8a66a0602c
commit d243db7ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

24
azure-pipelines.yml Normal file
View File

@ -0,0 +1,24 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- main
pool:
vmImage: 'windows-latest'
steps:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@2
displayName: 'Run PoliCheck'
inputs:
targetType: F
optionsPE: '1|2|3|4'
- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@2
displayName: 'Policheck Break Build'
inputs:
GdnBreakAllTools: false
GdnBreakGdnToolPoliCheck: true
GdnBreakGdnToolPoliCheckSeverity: Warning