Files
dagu/scripts
Yota HamadaandClaude Fable 5.1 351289d2f6 Sign the Windows binaries and installer with Azure Artifact Signing (#3645)
SmartScreen blocked dagu-<version>-setup.exe in Edge because it was an
unsigned executable with no download reputation, and Windows showed an
unknown publisher when it ran. Azure Artifact Signing (formerly Trusted
Signing) fixes both, and feeds reputation straight into SmartScreen.

Signing happens inside GoReleaser, as a post-build hook that signs each
Windows binary in place with jsign, so the archive, checksums.txt, the
attestation, the packslip and the installer all carry the same signed
bytes. The installer job then passes a jsign sign tool to Inno Setup,
which signs the setup executable and its uninstaller, and refuses to
upload an installer whose signature is not valid and timestamped.

A composite action logs in to Azure with the job's OIDC token for the
`release` environment, fetches a short-lived token for the signing
service and downloads a checksum-pinned jsign. No secret is stored. The
whole path is gated on the AZURE_SIGNING_ACCOUNT repository variable, so
a release still builds unsigned when it is empty.

The installer is now dagu-windows-amd64-setup.exe on every release, so
the newest one has a stable releases/latest/download URL.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-08 00:18:34 +09:00
..
2024-12-20 11:10:25 +09:00