1
+ # A pipeline with no CI trigger
2
+ trigger : none
3
+
1
4
pr :
2
5
branches :
3
6
include :
@@ -14,73 +17,11 @@ variables:
14
17
VmImage : vs2017-win2016 # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
15
18
16
19
17
- jobs :
18
- - job :
19
- displayName : Static Analysis
20
- pool :
21
- vmImage : ' $(VmImage)' # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
22
-
23
- steps :
24
- - checkout : self # self represents the repo where the initial Pipelines YAML file was found
25
- clean : true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching
26
- lfs : true # whether to download Git-LFS files; defaults to false
27
-
28
- # Analyze source code for type of content and target types to help determine which tools to run
29
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-autoapplicability.AutoApplicability@1
30
- displayName : ' AutoApplicability'
31
- inputs :
32
- VerboseWriter : true
33
- ExternalRelease : true
34
- InternalRelease : true
35
- IsService : true
36
- IsSoftware : true
37
-
38
- # Analyze source and build output text files for credentials
39
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
40
- displayName : ' CredScan'
41
- inputs :
42
- scanFolder : $(Build.SourcesDirectory)
43
- suppressionsFile : CredScanSuppressions.json
44
- debugMode : true
45
-
46
- # Scan text elements including code, code comments, and content/web pages, for sensitive terms based on legal, cultural, or geopolitical reasons
47
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1
48
- displayName : ' PoliCheck'
49
- inputs :
50
- targetType : F
51
-
52
- # AntiMalware scan
53
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
54
- displayName : ' AntiMalware'
55
- inputs :
56
- EnableServices : true
57
-
58
- # Run checks for recently discovered vulnerabilities which are not yet incorporated to another tool
59
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-vulnerabilityassessment.VulnerabilityAssessment@0
60
- displayName : ' Vulnerability Assessment'
61
-
62
- - task : DotNetCoreCLI@2
63
- displayName : Build Microsoft.Azure.Cosmos.sln
64
- inputs :
65
- command : build
66
- projects : ' Microsoft.Azure.Cosmos.sln'
67
- configuration : ' $(BuildConfiguration)'
68
- publishTestResults : true
69
-
70
- # - task: securedevelopmentteam.vss-secure-development-tools.build-task-binskim.BinSkim@3
71
- # displayName: 'BinSkim'
72
- # inputs:
73
- # InputType: Basic
74
-
75
- # Publish Analysis Results (position after all tools ran)
76
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
77
- displayName : ' Publish Security Analysis Logs'
78
-
79
- # The Post-Analysis build task will analyze the log files produced by the tools, and introduce a build break
80
- - task : securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
81
- displayName : ' Post Analysis'
82
- inputs :
83
- AllTools : true
20
+ jobs :
21
+ - template : templates/static-tools.yml
22
+ parameters :
23
+ BuildConfiguration : Release
24
+ VmImage : $(VmImage)
84
25
85
26
86
27
# - template: templates/build-test.yml
0 commit comments