Skip to content

Eng | Disable ESRP steps on non-official pipelines#4077

Merged
cheenamalhotra merged 6 commits intomainfrom
dev/cheena/prc-fix
Mar 25, 2026
Merged

Eng | Disable ESRP steps on non-official pipelines#4077
cheenamalhotra merged 6 commits intomainfrom
dev/cheena/prc-fix

Conversation

@cheenamalhotra
Copy link
Member

Description

Fixes PRC violations by disabling ESRP codesigning tasks on non-official pipelines.

Testing

Non-Official build: https://sqlclientdrivers.visualstudio.com/ADO.Net/_build/results?buildId=144627&view=results

Future Guidelines to follow:

  • Run dev/** branches on non-official pipelines only, and not on the official pipelines - unless modifying official build (specifically).
  • Do not update non-official pipelines to access production resources.

@cheenamalhotra cheenamalhotra requested a review from a team as a code owner March 24, 2026 04:03
Copilot AI review requested due to automatic review settings March 24, 2026 04:03
@github-project-automation github-project-automation bot moved this to To triage in SqlClient Board Mar 24, 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

Updates the OneBranch pipeline templates to prevent ESRP malware scanning and code-signing tasks from running in the non-official pipeline, addressing PRC compliance concerns about non-official builds accessing production signing resources.

Changes:

  • Introduces an isOfficial boolean threaded through OneBranch stage/job/step templates to gate ESRP tasks.
  • Updates official and non-official pipeline entrypoints to pass isOfficial: true/false into build-stages.yml.
  • Refactors pipeline instruction docs under .github/instructions/ to reflect the current OneBranch/CI pipeline structure and conventions.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
eng/pipelines/onebranch/steps/esrp-code-signing-step.yml Adds isOfficial gate around ESRP malware scanning and signing steps.
eng/pipelines/onebranch/steps/compound-esrp-nuget-signing-step.yml Gates NuGet malware scan/sign steps on isOfficial.
eng/pipelines/onebranch/steps/compound-esrp-dll-signing-step.yml Gates DLL malware scan/sign steps on isOfficial.
eng/pipelines/onebranch/stages/build-stages.yml Adds isOfficial parameter and threads it into build jobs.
eng/pipelines/onebranch/sqlclient-official.yml Passes isOfficial: true into build stages.
eng/pipelines/onebranch/sqlclient-non-official.yml Passes isOfficial: false into build stages.
eng/pipelines/onebranch/jobs/validate-signed-package-job.yml Re-indents/normalizes YAML formatting (no functional gating added).
eng/pipelines/onebranch/jobs/build-signed-sqlclient-package-job.yml Adds isOfficial parameter and passes it into ESRP signing step templates.
eng/pipelines/onebranch/jobs/build-signed-csproj-package-job.yml Adds isOfficial parameter and threads it into compound ESRP signing steps.
.github/instructions/onebranch-pipeline-design.instructions.md Replaces large design spec with a concise OneBranch editing guideline doc.
.github/instructions/ado-pipelines.instructions.md Replaces general guide with concise CI/PR pipeline editing guideline doc.

@cheenamalhotra cheenamalhotra added this to the 7.1.0-preview1 milestone Mar 24, 2026
@cheenamalhotra cheenamalhotra moved this from To triage to In review in SqlClient Board Mar 24, 2026
@cheenamalhotra cheenamalhotra added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Mar 24, 2026
@cheenamalhotra cheenamalhotra changed the title Disable ESRP steps on non-official pipelines Eng | Disable ESRP steps on non-official pipelines Mar 24, 2026
@paulmedynski paulmedynski self-assigned this Mar 24, 2026
@github-project-automation github-project-automation bot moved this from In review to In progress in SqlClient Board Mar 24, 2026
Copilot AI review requested due to automatic review settings March 24, 2026 18:26
@cheenamalhotra cheenamalhotra requested review from a team and paulmedynski March 24, 2026 18:26
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

paulmedynski
paulmedynski previously approved these changes Mar 24, 2026
@cheenamalhotra cheenamalhotra moved this from In progress to In review in SqlClient Board Mar 24, 2026
@cheenamalhotra cheenamalhotra merged commit f0e6f6c into main Mar 25, 2026
6 checks passed
@cheenamalhotra cheenamalhotra deleted the dev/cheena/prc-fix branch March 25, 2026 03:26
@github-project-automation github-project-automation bot moved this from In review to Done in SqlClient Board Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants