Skip to content

Commit 84f05d3

Browse files
Use official OneBranch template by default for CodeQL (#5289)
The weekly CodeQL task requires being run as an official build, hence CodeQL was not yet running. The easiest fix is to set the parameter controlling that to default to true, which means introducing another parameter controlling whether to release (which defaults to false).
1 parent 0f8d2a5 commit 84f05d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.pipelines/vscode-powershell-OneBranch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ parameters:
3434
- name: OfficialBuild
3535
displayName: Use Official OneBranch template
3636
type: boolean
37+
default: true
38+
- name: Release
39+
displayName: Generate a release
40+
type: boolean
3741
default: false
3842

3943
variables:
@@ -127,7 +131,7 @@ extends:
127131
files_to_sign: "*.signature.p7s"
128132
- stage: release
129133
dependsOn: build
130-
condition: and(succeeded(), ${{ eq(parameters.OfficialBuild, true) }})
134+
condition: and(succeeded(), ${{ eq(parameters.Release, true) }})
131135
variables:
132136
ob_release_environment: ${{ iif(parameters.OfficialBuild, 'Production', 'Test') }}
133137
version: $[ stageDependencies.build.main.outputs['package.version'] ]

0 commit comments

Comments
 (0)