| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
We still need to apply the template signing so that Guardian tasks pass and so that script files are signed. After doing what's essentially Windows signing, we sign and harden the binaries for macOS. Then we do the same for the PKG installer, and finally notarize it. The ESRP signing service requires a zip of files for Apple signing at all stages. Now that we can use it via the OneBranch signing task we no longer need the service connection or variable group that was trying to set it up. Notarization requires the BundleId from Get-MacOSPackageIdentifierInfo. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Uses codesign in the macOS build step to apply entitlements from a plist. This is required for the hardened runtime (which is required for notarization). See: https://learn.microsoft.com/en-us/dotnet/core/install/macos-notarization-issues#default-entitlements Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Backport of #27347 to release/v7.5.7. Adds macOS Mach-O binary code signing (with hardened runtime entitlements), Apple ESRP signing of the build output, and notarization of the PKG installer; also exports Get-MacOSPackageIdentifierInfo so the BundleId can be passed to the notarization step.
Changes:
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| assets/macos-entitlements.plist | New entitlements plist enabling JIT, unsigned exec memory, dyld env vars, library validation disable — required for hardened runtime / notarization. |
| tools/packaging/packaging.psd1 | Exports Get-MacOSPackageIdentifierInfo so it's callable from the pipeline. |
| .pipelines/templates/mac.yml | Adds entitlement codesign step in build job and post-sign Apple ESRP signing of Mach-O binaries via zip/sign/expand. |
| .pipelines/templates/mac-package-build.yml | Adds Apple signature verification, computes BundleId, removes variable-group/KeyCode indirection, adds notarize task, and restructures PKG extraction for ESRP's nested zip layout. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #27347 to release/v7.5.7
Triggered by Aditya Patwardhan (@adityapatwardhan) on behalf of Andy Jordan (@andyleejordan)
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
Adds appLicensing capability to Appx manifest for improved packaging.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
No new tests required; change validated by successful build and Appx manifest inspection.
Risk
REQUIRED: Check exactly one box.
This change only adds a capability to the Appx manifest and does not affect runtime behavior.