1 Commits
Author SHA1 Message Date
w3cjandClaude Opus 5.5 5b2786c758 ci(release): CI's release workflow, which builds, signs and hands each tag over
.github/workflows/release.yml, CI's half of each release, for a pushed
v* tag, in the release environment, which waits for the maintainer's
approval and holds what the workflow trusts: RELEASE_TAG_SIGNERS, the
SSH keys that sign release tags, and RELEASE_CI_KEY, CI's release key.
The job's token has contents: read, and id-token and attestations write
for the attestation alone, so it can't make or publish a release; the
co-signer does.

- scripts/release.sh --ci TAG DIR: the tag checked against
  DEVVM_RELEASE_SIGNERS, an allowed signers file, never the tagged
  commit's packaging/release-signer, as CI runs the tag's workflow and
  release.sh: annotated, a release's version, its tag object naming
  itself, signed by one of those keys, its commit on main
  (DEVVM_RELEASE_MAIN, refs/remotes/origin/main by default) and holding
  the three release keys. Then --tag's build, with the same signers as
  git's, and DIR with SHA256SUMS and exactly the files it lists, each
  checked against its SHA-256, and not the formulas, which the
  co-signer renders.
- scripts/release.sh --ci-sign TAG DIR: SHA256SUMS signed with CI's key,
  read on standard input into the script's memory and handed to
  minisign through a pipe, never a file or an argument, with the trusted
  comment devvm-release <version>, checked with the tag's
  packaging/keys/release-ci.pub, which can't be marked PLACEHOLDER: a
  key on standard input that isn't CI's is refused, and its signature
  removed. The placeholders' check is placeholder(), one owner for
  --tag's check and this one. --ci and --ci-sign refuse a tag without
  the release keys, pointing at github-setup.md's step 1.
- The workflow: a first step that stops a tag without the release keys
  before anything is installed, with the same pointer, then the tag
  fetched as GitHub has it, minisign alone through
  mise with no cache, the build under the runner's podman, the
  signature, an artifact attestation of every file SHA256SUMS lists
  (subject-checksums), and the artifact release, kept 90 days. Every
  action pinned by its commit; actionlint and zizmor (and zizmor's
  auditor persona) find nothing.
- The base's workflow, base.yml, comes with the published base; the
  workflow's header says where it goes.
- maintaining.md: CI's release workflow, its steps and its trust.

Tests: testdata/script/release_ci.txtar (signers only from
DEVVM_RELEASE_SIGNERS, an empty one, a tag signed by a key git trusts
but the list doesn't hold, not a release's tag, a lightweight tag, a
tag object of another tag, a commit off main, a folder that's there or
relative, the folder's exact files and their checksums, no key on stdin,
another role's key, the right key's signature and its trusted comment,
a second signature, a release-ci.pub marked PLACEHOLDER, a commit with
no release keys for --ci and --ci-sign), failing before the code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 21:36:37 -07:00