Skip to content

ci: let the verification gate skip Windows signing - #1074

Open
FerroxLabs wants to merge 1 commit into
mainfrom
fix/gate-skips-windows-signing
Open

FerroxLabs wants to merge 1 commit into
mainfrom
fix/gate-skips-windows-signing

Conversation

@FerroxLabs

Copy link
Copy Markdown
Owner

build-matrix.yml has never once completed a Windows build, and the reason was never time. It holds no Azure credentials by design, electron-builder declares win.azureSignOptions unconditionally, and the Azure EnvironmentCredential falls through to an INTERACTIVE flow when the three secrets are absent. Every Windows target sat silent for 107 minutes at 'signing with Azure Trusted Signing', AFTER its output was already written, until the job timeout killed it and reported CANCELLED, which reds out identically to a real failure. Raising the timeout from 60 to 120 did not help because nothing was progressing.

A verification build does not need a signature. This is the Windows counterpart of the CSC_IDENTITY_AUTO_DISCOVERY opt-out the same step already sets for macOS.

The release path is untouched. It supplies real credentials and already fails closed when AZURE_CLIENT_SECRET is empty on a tag. The hazard is the opt-out leaking onto that path and quietly shipping an unsigned installer, so it is guarded twice: at runtime resolveWindowsSigningOptOut throws on refs/tags/* and refs/heads/dev, the two refs build-and-release.yml fires on; at rest a test pins the flag present in the gate and absent from all three release workflows.

The decision is a pure exported function so this is a behaviour test rather than a source-string match. Both guards are mutation-verified: leaking the flag into _build-reusable.yml fails the test, and deleting the tag/dev refusal fails it too.

Full suite: 18,757 passed, 0 failed. Deliberately kept separate from the 0.12.1 release so it cannot perturb the build in flight.

build-matrix.yml has never once completed a Windows build, and the reason was
never time. It holds no Azure credentials by design, electron-builder declares
win.azureSignOptions unconditionally, and the Azure EnvironmentCredential falls
through to an INTERACTIVE flow when the three secrets are absent. Every Windows
target therefore sat silent for 107 minutes at 'signing with Azure Trusted
Signing' - AFTER its output was already written - until the job timeout killed it
and reported CANCELLED, which reds out identically to a real failure. Raising the
timeout 60 -> 120 did not help, because nothing was progressing.

A verification build does not need a signature. This is the Windows counterpart
of the CSC_IDENTITY_AUTO_DISCOVERY opt-out the same step already sets for macOS.

The release path is untouched: it supplies real credentials and already fails
closed when AZURE_CLIENT_SECRET is empty on a tag. The hazard is the opt-out
LEAKING onto that path and quietly shipping an unsigned installer, so it is
guarded twice. At runtime, resolveWindowsSigningOptOut throws on refs/tags/* and
on refs/heads/dev - the two refs build-and-release.yml fires on. At rest, a test
pins the flag present in the gate and absent from all three release workflows.

The decision is a pure exported function so this is a behaviour test rather than
a source-string match; the test loads the CommonJS module through createRequire,
since its top-level return defeats vitest's ESM transform. Both guards are
mutation-verified: leaking the flag into _build-reusable.yml fails the test, and
deleting the tag/dev refusal fails it too.

Full suite: 18,757 passed, 0 failed.
@github-actions github-actions Bot added area:packaging Signing, notarization, updater area:workflows Workflows & automation labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:packaging Signing, notarization, updater area:workflows Workflows & automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant