Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
7.8 KiB
Windows, Linux and macOS release-ref nightly: supervised manual go-live
Enabled for supervised manual runs, not yet qualified. The producer (nightly.yml, main) and the
signer (nightly-sign.yml, release) keep only their exact context guards and run when one of the reviewed
manual actors dispatches them. There is no schedule yet. The installed policy
.github/nightly-signing-policy.json is the v3 policy.
Once nightly.yml reaches main, populate producer_workflow_id before promoting the policy to
release by reading its registration ID with:
gh api repos/storytold/materialcraft/actions/workflows/nightly.yml --jq .id
The callers pass no platform secrets. The unsigned reusable caller's maximum OIDC/attestation
permissions are for its isolated attester; its compiler narrows to contents and Actions read
only, with no OIDC, attestation write, release environment or platform signing secrets.
Shared tooling is pinned to 605d58766e8f536564da8fc81d3676ac86816dea, the craft-common-actions
main commit that merged #339 (bounded
lineage compares and an issue reread at the end of candidate admission) on top of
#342 (policy v3, the platforms input
and the Linux and macOS legs). Both callers name it in uses and tooling-revision. A pin is reviewed
source availability, not provider, queue, native signing or crypto qualification.
Existing stable workflows are unchanged.
The shared-workflow port is a prerequisite. At this pin both reusable workflows admit only
PhotoCraft: nightly-unsigned.yml requires inputs.app-name == 'photocraft' and
github.repository == 'storytold/photocraft' on its build jobs, and nightly-release.yml requires the
same repository in validate and every signing job (its concurrency group is
craft-release-ref-signer-photocraft). A MaterialCraft dispatch therefore builds and signs nothing until
storytold/craft-common-actions admits storytold/materialcraft. No dispatch can produce a release before
that port, and both callers' uses, tooling-revision and the policy pins must move to the same
reviewed revision together.
First runs. The first runs are manual dispatches in this order: nightly.yml on main (only a
listed manual actor passes the producer's plan step), then nightly-sign.yml on release with that
producer run ID and attempt, by a listed manual actor.
Manual actors. bflatastic, dylanmtaylor, echelon, FredApps and skylartaylor, in the
producer's manual-actors and the policy's manual_actors. The list mirrors the release-managers
team (id 19837241), leaving out echelon-robot; when the team changes, update it by PR in three
places: the caller, the policy, and RELEASE_MANAGERS in packaging/nightly-release-tests.py, whose
reviewed_manual_actors check rejects a caller and policy that no longer match it.
Admission timing. The candidate check reads the newest CI run on the candidate commit and
main's latest finished Sonar analysis, so pick a quiet main, wait for its CI and SonarCloud
analysis to finish green, then dispatch the producer and, once it succeeds, the signer, before
another main push lands a newer analysis.
Platform rows. The producer caller lists
platforms: '["windows-x86_64","linux-x86_64","macos-aarch64"]' on its single job: one producer
run builds every listed platform for one all-or-nothing release (one failed or
skipped platform stops that night's release, Windows included), and the release-ref signer admits
platforms only from the protected policy, so there is no separate Linux or macOS caller job and
the signer caller has no platform input.
Installed policy values and their sources
Read on 2026-11-24; re-read anything that may have moved (and fill in producer_workflow_id once
nightly.yml lands on main) before the policy is promoted to release.
| Field | Value | Source |
|---|---|---|
repository_id |
1442148584 |
gh api repos/storytold/materialcraft --jq .id |
producer_workflow_id |
null (pending registration on main) |
gh api repos/storytold/materialcraft/actions/workflows/nightly.yml --jq .id after nightly.yml reaches main |
producer_tooling_revision, signer_tooling_revision, producer_workflow_ref |
605d5876… (craft-common-actions #339) |
The callers' pin |
manual_actors / automatic_signer_actors |
the five release managers / [] |
release-managers team (id 19837241) members who can push; equals the producer caller's manual-actors |
max_age_seconds, max_artifact_bytes |
86400, 2147483648 |
Go-live checklist |
platforms |
three rows (windows-x86_64, linux-x86_64, macos-aarch64) |
Stable Learning Machines signing identities (Authenticode publisher subject, OpenPGP primary fingerprint, Apple Developer ID team DJ6XS33FX8) |
candidate_policy.required_workflows |
CI (ci.yml, workflow 404098816), 2 gate jobs |
Workflow list API; jobs that succeeded on main push runs (gate / gate (ubuntu-24.04), gate / gate (windows-latest)) |
candidate_policy.sonar |
storytold / storytold_materialcraft, app 12526 |
SonarCloud workflow (.github/workflows/sonarcloud.yml) |
| Sonar conditions | new_security_rating accepted (max 5); the other five required |
Standard SonarCloud quality gate conditions |
Sonar issue_types / debt |
VULNERABILITY; [] |
Refresh before promoting to release if any unresolved main vulnerabilities exist |
The candidate check refuses whenever main's unresolved vulnerability set differs from debt, whether
an issue is new or fixed, and whenever a required condition fails or a listed CI job is renamed. Refresh
those values in the same reviewed change that promotes the policy to release.
Ownership and interface
.github/workflows/nightly.yml: default-main registration of the unsigned producer, namedMaterialCraft unsigned nightly, enabled for manual dispatch bymanual-actors; no signing secrets may be passed or inherited..github/workflows/nightly-sign.yml: top-level release registration, enabled for manual dispatch, and identical on main and release after reviewed promotion. It rejects wrong repository/event/actual branch, including same-name tags. Its constant whole-run concurrency (materialcraft-nightly-release) is distinct from stable, cancellation is off andqueue: maxmust be hosted-qualified. The caller itself passes no credentials; only the shared callee's sign jobs bind thereleaseenvironment.- Shared reusable entrypoints are
nightly-unsigned.ymlandnightly-release.ymlinstorytold/craft-common-actions. Both must resolve to a real reviewed public immutable commit; the defining workflow SHA and tooling input must match. - The existing
packaging/windows/sign.ps1 -Requiredis the app-owned Windows adapter. Invoke it only from the immutable release execution SHA checkout, never the producer's main source or extracted archive.
Local regression checks
python3 packaging/nightly-release-tests.py verifies the MaterialCraft nightly workflow and policy
contracts locally without contacting GitHub:
nightly.ymlandnightly-sign.ymlkeep their exact context guards, single-job structure, matchingcraft-common-actionscommit pin inusesandtooling-revision, no schedule, and no-cache/no-platform-secret boundary.nightly-sign.ymlpreserves its root concurrency serialization (materialcraft-nightly-release,cancel-in-progress: false,queue: max)..github/nightly-signing-policy.jsonmatches the v3 schema, repository identity, callers' pin, platform list, trust anchor shapes,manual_actors(identical to the producer'smanual-actors), required main-push CI workflow, and SonarCloud scope.