From 8e79341a658251f3d213cc9e60f74bad0540feb2 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:43:26 -0700 Subject: [PATCH] Use official OneBranch template by default for CodeQL 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). --- .pipelines/vscode-powershell-OneBranch.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.pipelines/vscode-powershell-OneBranch.yml b/.pipelines/vscode-powershell-OneBranch.yml index bebeb7ac58..928baa0136 100644 --- a/.pipelines/vscode-powershell-OneBranch.yml +++ b/.pipelines/vscode-powershell-OneBranch.yml @@ -34,6 +34,10 @@ parameters: - name: OfficialBuild displayName: Use Official OneBranch template type: boolean + default: true + - name: Release + displayName: Generate a release + type: boolean default: false variables: @@ -127,7 +131,7 @@ extends: files_to_sign: "*.signature.p7s" - stage: release dependsOn: build - condition: and(succeeded(), ${{ eq(parameters.OfficialBuild, true) }}) + condition: and(succeeded(), ${{ eq(parameters.Release, true) }}) variables: ob_release_environment: ${{ iif(parameters.OfficialBuild, 'Production', 'Test') }} version: $[ stageDependencies.build.main.outputs['package.version'] ]