| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Co-authored-by: Justin Chung <chungjustin@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 282853d0-d027-4558-9425-624a244cb9a3
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sorry, something went wrong.
There was a problem hiding this comment.
Fix the incorrect checkout paths and wrap all native codesign calls as requested.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1 · 1
Backports macOS signature validation and repair for nonofficial packaging pipelines while preserving official-build verification.
Changes:
| File | Summary |
|---|---|
| tools/packaging/Update-MacOSCodeSignature.ps1 | Adds signature validation and repair; native codesign calls require the repository’s execution wrapper. |
| .pipelines/templates/stages/PowerShell-Packages-Stages.yml | Passes official-build configuration to macOS jobs. |
| .pipelines/templates/mac.yml | Validates supported macOS signatures. |
| .pipelines/templates/mac-package-build.yml | Runs signature processing; entitlements and script paths must include the PowerShell checkout directory. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| EntitlementsPath = "$(Build.SourcesDirectory)/assets/macos-entitlements.plist" | ||
| } | ||
| displayName: 'Verify Apple codesign on signed binaries' | ||
| & "$(Build.SourcesDirectory)/tools/packaging/Update-MacOSCodeSignature.ps1" @signatureParameters |
| } | ||
|
|
||
| foreach ($binary in $binaries) { | ||
| & codesign --verify --deep --strict --verbose=4 $binary.FullName |
| Back | FazBrowse Home | New Git URL |
Backport of #27976 to release/v7.6.7
Triggered by Aditya Patwardhan (@adityapatwardhan) on behalf of Justin Chung (@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 packaging pipeline change that accepts supported Microsoft Developer ID or ad-hoc signatures for nonofficial coordinated builds, repairs Mach-O binaries that fail native verification on macOS package agents, and retains production Developer ID verification for official builds.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
The original change was validated in coordinated nonofficial build 715578 for x64 and arm64 signature validation and packages run 715615 for both macOS package architectures with strict native codesign verification. The changed YAML and inline PowerShell parsed successfully, PSScriptAnalyzer passed for the new helper, and local scenarios covered nonofficial repair and official verification-only behavior. For this conflict-free backport, the cherry-picked PowerShell helper passed parser validation, all changed files were checked for conflict markers, git diff --check passed, and CI will provide final release-branch validation.
Risk
REQUIRED: Check exactly one box.
High risk because this changes macOS package signing and validation behavior in release pipelines. The change is narrowly scoped to Mach-O signature handling, preserves verification-only behavior for official builds, requires strict native codesign verification before packaging, and was validated in coordinated nonofficial x64 and arm64 builds.