@@ -24,10 +24,10 @@ parameters:
2424# As an entrypoint pipeline yml file, all parameters here show up in the Queue Run dialog.
2525# If any paramaters should NOT be queue-time options, they should be removed from here
2626# and references to them in this file replaced with hard-coded values.
27- - name : RealSign
28- displayName : Real sign?
27+ - name : ForceOfficialBuild
28+ displayName : Official build ( sign, compliance, etc.)
2929 type : boolean
30- default : false
30+ default : false # this should remain false so PR builds using this pipeline are unofficial
3131- name : ShouldSkipOptimize
3232 displayName : Skip OptProf optimization
3333 type : boolean
@@ -40,14 +40,10 @@ parameters:
4040 displayName : Run tests
4141 type : boolean
4242 default : true
43- - name : EnableCompliance
44- displayName : Run Compliance Tools
45- type : boolean
46- default : true
4743- name : EnableAPIScan
48- displayName : Include APIScan with Compliance tools
44+ displayName : Include APIScan with compliance tools
4945 type : boolean
50- default : true
46+ default : true # enable in individual repos only AFTER updating TSAOptions.json with your own values
5147
5248resources :
5349 repositories :
@@ -60,18 +56,22 @@ variables:
6056- template : GlobalVariables.yml
6157
6258extends :
63- ${{ if parameters.EnableCompliance }} :
59+ ${{ if or( parameters.ForceOfficialBuild, eq(variables['Build.Reason'],'Schedule')) }} :
6460 template : azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
6561 parameters :
6662 sdl :
6763 sourceAnalysisPool : VSEngSS-MicroBuild2022-1ES
64+ codeSignValidation :
65+ enabled : true
66+ break : true
67+ additionalTargetsGlobPattern : -|Variables-*\*.ps1;-|APIScanInputs-*\**;-|test_symbols-*\**;-|MicroBuild\**
6868 policheck :
6969 enabled : true
7070 exclusionsFile : $(System.DefaultWorkingDirectory)\azure-pipelines\PoliCheckExclusions.xml
7171 suppression :
7272 suppressionFile : $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress
7373 sbom :
74- enabled : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }} # Disable the generation for SBOMs for artifacts in unsigned builds since it's slow
74+ enabled : true
7575 stages :
7676 - stage : Build
7777 variables :
@@ -80,9 +80,9 @@ extends:
8080 - template : /azure-pipelines/build.yml@self
8181 parameters :
8282 Is1ESPT : true
83- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
83+ RealSign : true
8484 ShouldSkipOptimize : ${{ parameters.ShouldSkipOptimize }}
85- EnableAPIScan : ${{ and(parameters.EnableCompliance, parameters. EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
85+ EnableAPIScan : ${{ and(parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
8686 windowsPool : VSEngSS-MicroBuild2022-1ES
8787 linuxPool :
8888 name : AzurePipelines-EO
@@ -97,7 +97,7 @@ extends:
9797 RunTests : ${{ parameters.RunTests }}
9898 - template : /azure-pipelines/prepare-insertion-stages.yml@self
9999 parameters :
100- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
100+ RealSign : true
101101 ${{ else }} :
102102 template : azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate
103103 parameters :
@@ -113,9 +113,9 @@ extends:
113113 - template : /azure-pipelines/build.yml@self
114114 parameters :
115115 Is1ESPT : true
116- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
116+ RealSign : false
117117 ShouldSkipOptimize : ${{ parameters.ShouldSkipOptimize }}
118- EnableAPIScan : ${{ and(parameters.EnableCompliance, parameters.EnableAPIScan, ne(variables['Build.Reason'], 'pullRequest')) }}
118+ EnableAPIScan : false
119119 windowsPool : VSEngSS-MicroBuild2022-1ES
120120 linuxPool :
121121 name : AzurePipelines-EO
@@ -130,4 +130,4 @@ extends:
130130 RunTests : ${{ parameters.RunTests }}
131131 - template : /azure-pipelines/prepare-insertion-stages.yml@self
132132 parameters :
133- RealSign : ${{ or(parameters.RealSign, eq(variables['Build.Reason'],'Schedule')) }}
133+ RealSign : false
0 commit comments