@@ -23,10 +23,10 @@ parameters:
2323# As an entrypoint pipeline yml file, all parameters here show up in the Queue Run dialog.
2424# If any paramaters should NOT be queue-time options, they should be removed from here
2525# and references to them in this file replaced with hard-coded values.
26- - name : RealSign
27- displayName : Real sign?
26+ - name : ForceOfficialBuild
27+ displayName : Official build ( sign, compliance, etc.)
2828 type : boolean
29- default : false
29+ default : false # this should remain false so PR builds using this pipeline are unofficial
3030- name : ShouldSkipOptimize
3131 displayName : Skip OptProf optimization
3232 type : boolean
@@ -39,14 +39,10 @@ parameters:
3939 displayName : Run tests
4040 type : boolean
4141 default : true
42- - name : EnableCompliance
43- displayName : Run Compliance Tools
44- type : boolean
45- default : true
4642- name : EnableAPIScan
47- displayName : Include APIScan with Compliance tools
43+ displayName : Include APIScan with compliance tools
4844 type : boolean
49- default : true
45+ default : true # enable in individual repos only AFTER updating TSAOptions.json with your own values
5046
5147resources :
5248 repositories :
@@ -59,18 +55,22 @@ variables:
5955- template : GlobalVariables.yml
6056
6157extends :
62- ${{ if parameters.EnableCompliance }} :
58+ ${{ if or( parameters.ForceOfficialBuild, eq(variables['Build.Reason'],'Schedule')) }} :
6359 template : azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
6460 parameters :
6561 sdl :
6662 sourceAnalysisPool : VSEngSS-MicroBuild2022-1ES
63+ codeSignValidation :
64+ enabled : true
65+ break : true
66+ additionalTargetsGlobPattern : -|Variables-*\*.ps1;-|APIScanInputs-*\**;-|test_symbols-*\**;-|MicroBuild\**
6767 policheck :
6868 enabled : true
6969 exclusionsFile : $(System.DefaultWorkingDirectory)\azure-pipelines\PoliCheckExclusions.xml
7070 suppression :
7171 suppressionFile : $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress
7272 sbom :
73- enabled : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }} # Disable the generation for SBOMs for artifacts in unsigned builds since it's slow
73+ enabled : true
7474 credscan :
7575 suppressionsFile : $(Build.SourcesDirectory)/azure-pipelines/CredScanSuppressions.json
7676 debugMode : true # required for whole directory suppressions
@@ -82,9 +82,9 @@ extends:
8282 - template : /azure-pipelines/build.yml@self
8383 parameters :
8484 Is1ESPT : true
85- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
85+ RealSign : true
8686 ShouldSkipOptimize : ${{ parameters.ShouldSkipOptimize }}
87- EnableAPIScan : ${{ and(parameters.EnableCompliance, parameters. EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
87+ EnableAPIScan : ${{ and(parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
8888 windowsPool : VSEngSS-MicroBuild2022-1ES
8989 linuxPool :
9090 name : AzurePipelines-EO
@@ -99,7 +99,7 @@ extends:
9999 RunTests : ${{ parameters.RunTests }}
100100 - template : /azure-pipelines/prepare-insertion-stages.yml@self
101101 parameters :
102- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
102+ RealSign : true
103103 ${{ else }} :
104104 template : azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate
105105 parameters :
@@ -117,9 +117,9 @@ extends:
117117 - template : /azure-pipelines/build.yml@self
118118 parameters :
119119 Is1ESPT : true
120- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
120+ RealSign : false
121121 ShouldSkipOptimize : ${{ parameters.ShouldSkipOptimize }}
122- EnableAPIScan : ${{ and(parameters.EnableCompliance, parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
122+ EnableAPIScan : false
123123 windowsPool : VSEngSS-MicroBuild2022-1ES
124124 linuxPool :
125125 name : AzurePipelines-EO
@@ -134,4 +134,4 @@ extends:
134134 RunTests : ${{ parameters.RunTests }}
135135 - template : /azure-pipelines/prepare-insertion-stages.yml@self
136136 parameters :
137- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
137+ RealSign : false
0 commit comments