Skip to content

[release/v7.6.6] Use Custom Validation Policy for vPack Pipeline - #27914

Merged
Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.6.6from
jshigetomi:backport-27911-v7.6.6
Sep 1, 2026
Merged

[release/v7.6.6] Use Custom Validation Policy for vPack Pipeline#27914
Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.6.6from
jshigetomi:backport-27911-v7.6.6

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Backport of #27911 to release/v7.6.6.

Signs the complete vPack payload with the Windows build tools certificate and validates it with the merged repository-owned tools-only CodeSign policy.

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 99e6a033-65fd-4a39-9a71-2ce9b7657c10
(cherry picked from commit bc487bf)
Copilot AI lite review requested due to automatic review settings August 31, 2026 23:44
@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner August 31, 2026 23:44
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Backport to release/v7.6.6 that unblocks the vPack pipeline by disabling the injected OneBranch CodeSign validation and instead re-signing the full vPack payload with the Windows build tools certificate, then validating it against a repository-owned “tools-only” CodeSign policy.

Changes:

  • Disable injected CodeSign validation for the vPack build job and add an explicit CodeSign validation step using a custom policy file.
  • Extend the obp-file-signing.yml template to support overriding the third-party signing profile and optionally signing all binaries with that profile (used by vPack).
  • Add a repository-owned custom CodeSign policy XML and remove the prior global SDL custom policy toggle from the official vPack pipeline.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.pipelines/templates/stages/PowerShell-vPack-Stages.yml Disables injected validation, signs the full vPack payload with the tools cert, then validates with a custom policy and post-processes SARIF.
.pipelines/templates/obp-file-signing.yml Adds parameters to override third-party signing profile and optionally sign all binaries with that profile.
.pipelines/PowerShell-vPack-Official.yml Removes globalSdl.useCustomPolicy in favor of explicit per-job validation in the stage template.
.config/codesignpolicy.xml Introduces the repository-managed “tools-only” CodeSign validation policy used by the vPack stage.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +266 to +274
$failures = @(
foreach ($run in $sarif.runs) {
foreach ($result in $run.results) {
if ($result.ruleId -ne 'CodeSign.MatchingPolicy') {
$result
}
}
}
)
@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Sep 1, 2026
@jshigetomi
Justin Chung (jshigetomi) merged commit 97b5570 into PowerShell:release/v7.6.6 Sep 1, 2026
34 of 35 checks passed
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.

3 participants