Skip to content

[release/v7.6] Hardcode Official templates#26972

Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.6from
daxian-dbw:backport/release/v7.6/26928-eb1915e76
Mar 9, 2026
Merged

[release/v7.6] Hardcode Official templates#26972
daxian-dbw merged 1 commit intoPowerShell:release/v7.6from
daxian-dbw:backport/release/v7.6/26928-eb1915e76

Conversation

@daxian-dbw
Copy link
Member

Backport of #26928 to release/v7.6

Triggered by @daxian-dbw on behalf of @jshigetomi

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Enforces 1ES Drift Management policy compliance by hardcoding official OneBranch templates in all build pipelines. Removes OfficialBuild parameter and conditional logic, simplifying pipeline configuration and preventing misconfigurations.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Successfully backported to v7.4 and merged. Changes validated through CI/CD pipeline runs in official build environment. v7.5 backport (#26968) currently in testing.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

High risk as it modifies core build pipeline infrastructure by hardcoding official OneBranch templates. However, this is necessary for 1ES Drift Management policy compliance. Changes have been validated in v7.4 (merged successfully) and stabilization is in progress for v7.5. Not taking this change creates policy compliance risks.

@daxian-dbw daxian-dbw requested a review from jshigetomi as a code owner March 9, 2026 22:25
Copilot AI review requested due to automatic review settings March 9, 2026 22:25
@daxian-dbw daxian-dbw requested a review from a team as a code owner March 9, 2026 22:25
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 9, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the “hardcode official OneBranch templates” change to release/v7.6 to comply with 1ES Drift Management by removing OfficialBuild toggles from official pipelines and always extending official governed templates.

Changes:

  • Removed the OfficialBuild pipeline parameter and related template-selection variables from official build pipelines.
  • Hardcoded official governed templates (v2/Microsoft.Official.yml, v2/OneBranch.Official.CrossPlat.yml) in extends.
  • Updated pipeline run names and key variables (e.g., releaseEnvironment, ps_official_build) to fixed “official/prod” values.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.pipelines/PowerShell-vPack-Official.yml Removes OfficialBuild parameter/template selector and always extends Microsoft.Official template; run name hardcoded to .true.
.pipelines/PowerShell-Release-Official.yml Removes OfficialBuild parameter/template selector; hardcodes releaseEnvironment to Production and extends official cross-plat template.
.pipelines/PowerShell-Release-Official-Azure.yml Removes OfficialBuild parameter/template selector and always extends official cross-plat template; run name hardcoded to .true.
.pipelines/PowerShell-Packages-Official.yml Removes OfficialBuild parameter/template selector and always extends official cross-plat template; MSIX template invoked with OfficialBuild: true.
.pipelines/PowerShell-Coordinated_Packages-Official.yml Removes OfficialBuild parameter/template selector; hardcodes ps_official_build to true and extends official cross-plat template.

@daxian-dbw daxian-dbw merged commit ed90130 into PowerShell:release/v7.6 Mar 9, 2026
39 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.6/26928-eb1915e76 branch March 9, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants