Repository navigation
Sign Windows and macOS release packages - #4
Merged
Merged
Conversation
Windows: sign the app, the installer and its uninstaller through Azure Artifact Signing (Zededa Germany GmbH). The job signs in with GitHub OIDC; CMake gains IMAGER_SIGN_DLIB / IMAGER_SIGN_DLIB_METADATA so signtool uses the Azure signing library instead of a certificate in the local store. macOS: sign the app and the DMG with the Developer ID of Zededa Germany GmbH, notarize the DMG with Apple and staple the ticket. The signing script now signs inside-out and stops on any failure, and names the app, volume and DMG after ZFlash instead of Raspberry Pi Imager. Signing runs only in the zflash-release environment (approval required, zflash branch only) and is on by default for releases; pull request builds stay unsigned. Both jobs end with a check that fails the release unless the signatures are valid, timestamped and from the expected signer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| OSS Licenses | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
| if: inputs.sign-windows | ||
| - name: Sign in to Azure | ||
| if: inputs.sign | ||
| uses: azure/login@v2 |
dautovri
had a problem deploying
to
zflash-release
November 20, 2026 13:56 — with
GitHub Actions
Error
dautovri
temporarily deployed
to
zflash-release
November 20, 2026 13:56 — with
GitHub Actions
Inactive
dautovri
had a problem deploying
to
zflash-release
November 20, 2026 15:01 — with
GitHub Actions
Failure
Apple can hold a new app's notarization for "in-depth analysis" for hours or days. The macOS job now uploads the DMG, waits up to 20 minutes and, if Apple is still reviewing it, carries on with the signed DMG marked as pending instead of failing. The release is then always created as a draft with a note naming the Apple submission. New "Finish macOS notarization" workflow (run by hand with the release tag): asks Apple about that submission; once accepted it staples the DMG, checks it with Gatekeeper, replaces the DMG and its SHA256SUMS line in the draft and removes the note. While Apple is still reviewing it, it says so and stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Added after the first signed test run sat in Apple notarization for 48+ minutes (Apple holds new apps for "in-depth analysis"):
GitHub only lists a new manual workflow once it is on the default branch, so it can be run after this PR is merged. 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases of ZFlash currently ship a Windows installer signed with a self-signed certificate ("Unknown publisher", SmartScreen blocks it) and an unsigned macOS DMG (Gatekeeper rejects it). This signs both with ZEDEDA's real certificates, the same ones Raven uses.
Windows
IMAGER_SIGN_DLIB/IMAGER_SIGN_DLIB_METADATAmake signtool use the Azure signing library. Local signing with a certificate (IMAGER_SIGN_CERT_SHA1,build-win-selfsigned.ps1) still works.macOS
create_styled_dmg.sh.innow signs inside-out and stops on any signing failure (before, failures were only warnings), signs the DMG itself, and names the app, volume and DMG after ZFlash instead of "Raspberry Pi Imager".Release flow
release.yml: signing is now on by default (signinput replacessign-windows).zflash-releaseenvironment: an approval is required, only thezflashbranch may use it, and the signing variables and secrets live there.Setup already done
zflash-releaseenvironment with its variables and secrets.repo:zededa/zflash:environment:zflash-release.WINDOWS_SIGNING_PFX*repository secrets are no longer used; they can be deleted after the first signed release.Testing
🤖 Generated with Claude Code