File tree Expand file tree Collapse file tree 4 files changed +18
-1107
lines changed Expand file tree Collapse file tree 4 files changed +18
-1107
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,13 @@ stages:
99
99
displayName : Compliance Tools
100
100
dependsOn : []
101
101
102
+ variables :
103
+ Codeql.SkipTaskAutoInjection : false
104
+
102
105
jobs :
103
106
- job : ComplianceTools
104
107
timeoutInMinutes : 120
105
108
steps :
106
- - template : /eng/common/pipelines/templates/steps/credscan.yml
107
- parameters :
108
- BaselineFilePath : $(Build.SourcesDirectory)\eng\python.gdnbaselines
109
-
110
109
- template : /eng/common/pipelines/templates/steps/policheck.yml
111
110
parameters :
112
111
PublishAnalysisLogs : false
Original file line number Diff line number Diff line change 71
71
image : $(LINUXVMIMAGE)
72
72
os : linux
73
73
74
+ # Only run CG and codeql on internal build job
75
+ ${{ if eq(variables['System.TeamProject'], 'internal') }} :
76
+ templateContext :
77
+ sdl :
78
+ componentgovernance :
79
+ enabled : true
80
+ codeql :
81
+ binaryLanguages : python # Need to specify the language because we clone after the codeql initialize step
82
+ compiled :
83
+ enabled : true
84
+
74
85
steps :
75
86
- template : /eng/pipelines/templates/steps/build-package-artifacts.yml
76
87
parameters :
Original file line number Diff line number Diff line change @@ -53,11 +53,12 @@ extends:
53
53
codeql :
54
54
compiled :
55
55
enabled : false
56
- justificationForDisabling : " CodeQL times our pipelines out by running for 2+ hours before being force canceled."
56
+ justificationForDisabling : " To reduce redundant CG runs across all our pipeline jobs we are disabling and only running in our main build job."
57
+ componentgovernance :
58
+ enabled : false
59
+ justificationForDisabling : " To reduce redundant CG runs across all our pipeline jobs we are disabling and only running in our main build job."
57
60
credscan :
58
61
suppressionsFile : ' $(Build.SourcesDirectory)/eng/CredScanSuppression.json'
59
- toolVersion : ' 2.3.12.23'
60
- baselineFiles : $(Build.SourcesDirectory)/eng/python.gdnbaselines
61
62
psscriptanalyzer :
62
63
compiled : true
63
64
break : true
You can’t perform that action at this time.
0 commit comments