Skip to content

Disable SDL codesign auto-scan on the package job#40657

Merged
benhillis merged 1 commit into
masterfrom
fix/package-stage-disable-codesign
May 28, 2026
Merged

Disable SDL codesign auto-scan on the package job#40657
benhillis merged 1 commit into
masterfrom
fix/package-stage-disable-codesign

Conversation

@benhillis
Copy link
Copy Markdown
Member

Summary

Disable the OneBranch SDL CodeSign auto-scan on the package job so it stops failing the release build on in-repo .ps1 files.

PR Checklist

  • Pipeline-only change; no product code affected
  • Comment in the YAML explains why we disabled rather than excluded

Detailed Description

The Guardian CodeSign post-analysis scans the entire source checkout in the package job and flags every in-repo .ps1 as unsigned (17 errors), breaking the release build (most recently build 147990024).

Two prior attempts to filter the findings via the documented ob_sdl_codeSignValidation_excludes variable were both silently ignored on this pipeline:

  1. b011cf7 (Pipelines: exclude in-repo .ps1 scripts from CodeSign post-analysis #40541): added the variable at pipeline-level in wsl-build-{release,nightly,pr}-onebranch.yml and at job-level in build-job.yml.
  2. Pipelines: exclude .ps1 from CodeSign in package stage #40653: added the variable to the package job's own variables: block.

After exhausting variable-format / scope / path-separator hypotheses without ADO log access, this PR takes the reliable route:

  • Disable ob_sdl_codeSignValidation on the package job only.
  • The build_x64 / build_arm64 jobs keep validation enabled.
  • The msixbundle and nupkg outputs are explicitly signed AND verified by the existing EsrpCodeSigning@5 tasks in the same job (which run SigntoolVerify / NuGetVerify operations) - so signing coverage on the actual release artifacts is preserved; only the broken broad-tree scan is dropped.

Validation Steps

Next release pipeline run will confirm the CodeSign post-analysis no longer fails the package job.

Copilot AI review requested due to automatic review settings May 27, 2026 22:48
@benhillis benhillis requested a review from a team as a code owner May 27, 2026 22:48
The Guardian CodeSign post-analysis scans the entire source checkout and
flags every in-repo .ps1 as unsigned (17 errors, breaking the release
build). Two prior attempts to filter the findings via the documented
ob_sdl_codeSignValidation_excludes variable - at pipeline-level
(b011cf7) and at the package job's variables block (PR #40653) - were
both silently ignored.

Disable the auto-scan on the package job; the msixbundle and nupkg
outputs are explicitly signed AND verified by the EsrpCodeSigning tasks
in the same job (SigntoolVerify / NuGetVerify operations), so signing
coverage on the actual release artifacts is preserved. The build_x64 /
build_arm64 jobs keep codesign validation enabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis force-pushed the fix/package-stage-disable-codesign branch from f08b59c to ce637ce Compare May 27, 2026 22:50
Copy link
Copy Markdown
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

This PR updates the OneBranch package stage to disable the SDL CodeSign post-analysis auto-scan only for the package job, addressing release failures caused by unsigned in-repo PowerShell helper scripts while preserving explicit signing/verification of release artifacts.

Changes:

  • Replaces the ignored .ps1 CodeSign exclude with ob_sdl_codeSignValidation_enabled: false scoped to the package job.
  • Adds an inline YAML comment explaining why the package-job scan is disabled and noting that msixbundle and nupkg outputs are still signed and verified.

@benhillis benhillis enabled auto-merge (squash) May 27, 2026 23:58
@benhillis benhillis merged commit e919005 into master May 28, 2026
11 checks passed
@benhillis benhillis deleted the fix/package-stage-disable-codesign branch May 28, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants