-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (37 loc) · 1.1 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ADO Pipeline job:
- job: SAST
displayName: SAST scan
pool:
vmImage: 'windows-latest'
steps:
- task: JavaToolInstaller@0
displayName: Use JRE 11
inputs:
versionSpec: 11
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
- task: BatchScript@1
displayName: Setup Visual Studio environment
inputs:
filename: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat
modifyEnvironment: true
- task: FortifyScanCentralSAST@7
displayName: Run SAST scan
inputs:
scanCentralCtrlUrl: 'https://beroett:8443/scancentral-ctrl/'
applicationName: "Disappear"
applicationVersion: "2"
#applicationIdentifierType: 'byId'
#applicationVersionId: '10000'
block: true
buildFailureCriteria: "[fortify priority order]:medium or [fortify priority order]:high or [fortify priority order]:critical"
#buildFile: "./BethanysPieShopHRM.App/BethanysPieShopHRM.App.csproj"
buildTool: none
outputFile: $(agent.tempdirectory)/output.fpr
overwrite: true
quiet: false
scanCentralClientToken: $(ScanCentralClientToken)
sscCiToken: $(FortifyCliToken)
sscUrl: $(FortifyBaseUrl)
taskResultForBuildFailureCriteria: WARN
uploadToSSC: true