Release: sign Windows binaries and MSI through SignPath Foundation (#7067)
* Release: sign the Windows binaries and MSI through SignPath Foundation When the SIGNPATH_API_TOKEN secret exists, each Windows job sends the three .exe files to SignPath before packaging, then the MSI built from them, using the GitHub artifact flow from SignPath's docs. The policy is test-signing unless the signpath_signing_policy dispatch input or the SIGNPATH_SIGNING_POLICY repository variable says otherwise. Without the secret the jobs build unsigned exactly as before. package.ps1 gains -Phase stage|package so signing can sit between the build and the MSI; the artifact configuration to paste into SignPath is packaging/windows/signpath-artifact-configuration.xml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * SignPath: drop the description attributes the Foundation plan doesn't allow SignPath Foundation projects get an automatic signature description (its watermark); the artifact configuration may not override it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+26
-2
@@ -154,8 +154,9 @@ change release infrastructure does not itself request publication of the applica
|
||||
other platforms; report any platform you could not exercise yourself.
|
||||
3. Review the generated notes. Add a concise description of features, fixes, breaking changes,
|
||||
and known limitations. Keep the installation instructions. The macOS app is Developer ID
|
||||
signed and notarized only when the build summary says so; other packages are unsigned. Do not
|
||||
claim otherwise. Resolve failed checks or missing artifacts before publication.
|
||||
signed and notarized only when the build summary says so, and the Windows files are signed only
|
||||
when it says which SignPath policy signed them (`test-signing` is a self-signed test certificate
|
||||
that Windows does not trust); other packages are unsigned. Do not claim otherwise. Resolve failed checks or missing artifacts before publication.
|
||||
4. Publish the verified draft using `gh` or the equivalent GitHub release API. For example:
|
||||
|
||||
```sh
|
||||
@@ -316,6 +317,29 @@ Signing currently uses a maintainer's **personal** Developer ID, so downloads sh
|
||||
name, not an organisation's. Moving to an organisation account means replacing the certificate
|
||||
and the API key secrets (`APPLE_API_KEY_P8`, `APPLE_API_KEY_ID`, `APPLE_API_ISSUER`).
|
||||
|
||||
## Windows signing (SignPath Foundation)
|
||||
|
||||
When the `SIGNPATH_API_TOKEN` secret (the API token of the SignPath CI user) exists, the release
|
||||
workflow's Windows jobs Authenticode-sign through [SignPath Foundation](https://signpath.org)
|
||||
(organization `fa603ff4-c702-404b-8588-a524371c7a4e`, project `solidcraft`). Each architecture
|
||||
sends two signing requests: `solidcraft.exe`, `solidcraft-cli.exe` and `solvecraft-cli.exe` first,
|
||||
so the MSI, the portable zip and the plain `.exe` are made from signed binaries, then the MSI. Each
|
||||
request uploads the files as a workflow artifact, SignPath fetches and signs it, and the job checks
|
||||
that every file came back signed. Without the secret (forks) the jobs build unsigned as before.
|
||||
|
||||
- **Policy:** `test-signing` (a self-signed test certificate) unless the dispatch input
|
||||
`signpath_signing_policy` or the repository variable `SIGNPATH_SIGNING_POLICY` says otherwise.
|
||||
Switch to the real certificate with `gh variable set SIGNPATH_SIGNING_POLICY -b release-signing
|
||||
-R tangency-labs/solidcraft` once SignPath has issued it. Requests under `release-signing` wait
|
||||
for approval in SignPath; the workflow waits up to an hour for each.
|
||||
- **Artifact configuration:** `packaging/windows/signpath-artifact-configuration.xml`. When it
|
||||
changes, paste the new version into the SignPath project's artifact configuration when it lands.
|
||||
- **Test-sign without publishing:** `gh workflow run release.yml -R tangency-labs/solidcraft --ref
|
||||
<branch> -f draft=false`, then check the Windows jobs' summaries and the `release-assets`
|
||||
artifact.
|
||||
- SignPath only signs runs whose jobs all ran on GitHub-hosted runners, so keep the `version`,
|
||||
`icons` and `windows` jobs off self-hosted runners.
|
||||
|
||||
## Homebrew tap
|
||||
|
||||
macOS users install with `brew install --cask tangency-labs/tap/solidcraft` from the tap repository
|
||||
|
||||
Reference in New Issue
Block a user