mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-30 18:27:29 +01:00
sign.ps1 downloaded Microsoft.Trusted.Signing.Client from the unversioned NuGet URL and loaded its dlib into signtool, next to the Azure signing secrets, with no version or integrity check. Download a pinned version (1.0.95, which the unversioned URL serves today) and refuse it unless its SHA-256 matches, so upgrading the client is a deliberate change in the repository. The release docs say where the pin lives.
1.5 KiB
1.5 KiB
Release security
PhotoCraft's release workflow builds platform packages and a draft GitHub Release from the release branch. The authoritative process is docs/releasing.md.
Implemented workflow elements
- platform-specific signing/notarization steps exist for macOS and Windows;
- signing secrets are scoped through the GitHub
releaseenvironment; - the Azure Trusted Signing client that Windows signing loads is pinned to a version and SHA-256, and refused on a mismatch;
- release artifacts include
SHA256SUMS.txt; - the final release job receives
contents: write, while build jobs use narrower access; - artifacts remain in a draft release until a maintainer publishes them.
Signing is conditional. The workflow can produce unsigned artifacts when signing material is unavailable and emits warnings. Consumers and maintainers must verify the job summary and artifact signature rather than assuming every release is signed.
Future hardening
- generate a machine-readable SBOM for each release;
- publish provenance/attestations tied to the source commit and workflow;
- make signature state explicit in release metadata;
- verify checksums, signatures, notarization, and installer behavior before publication;
- review action pinning and release-tool provenance;
- document key rotation and compromise response.
Building, signing, drafting, publishing, and deploying are separate states. A successful build must not be reported as a published release.