mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-04 21:31:48 +00:00
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>