Every release of requisition-ts is built by the workflow .github/workflows/release.yml from a signed tag. The
release file listed in RELEASE-SHA256SUMS (the npm package file) is published only when it is byte for byte the
file that was reviewed before the tag. The bill of materials and the attestation bundle are written by the workflow
when it releases, so they have no reviewed digest: the attestation (step 4) covers the release file and the bill of
materials. These steps check that, from the outside. Each step names the files it needs; all of them are attached to
the GitHub release (https://github.com/ScriptKittyOS/requisition-ts/releases/tag/v0.3.0). The examples are for 0.3.0.
What the release holds:
| File | What it is |
|---|---|
requisition-ts-0.3.0.tgz |
the release files |
RELEASE-SHA256SUMS |
the SHA-256 of each release file, as reviewed (also in the repository at the tag) |
RELEASE-SHA256SUMS.mldsa87.json |
the ML-DSA-87 signature of RELEASE-SHA256SUMS by the release key |
RELEASE-KEYS.json |
the release's ML-DSA-87 public key |
requisition-ts-0.3.0.cdx.json |
the software bill of materials (CycloneDX 1.5) |
v0.3.0.provenance.sigstore.json |
the build provenance attestation (SLSA v1, Sigstore bundle) |
ALL-ASSETS.sha256 |
the SHA-256 of every file attached to the release |
The release keys, with their fingerprints, are in RELEASE-SIGNERS (OpenPGP) and RELEASE-KEYS.json (ML-DSA-87)
at the tag. A key read from the same place as the release proves only that the two agree, so the steps below take the
fingerprints obtained another way: OPENPGP_FPRS (the OpenPGP fingerprints, 40 hexadecimal digits each) and
KEY_SHA256 (the SHA-256 of the ML-DSA-87 key). Two other places publish them: the notes of the GitHub release
(the workflow writes there the values its release environment holds, outside the repository) and the profile of the
project's GitHub organisation (https://github.com/ScriptKittyOS). Compare the two, or use the values of an earlier
release you already checked.
git clone https://github.com/ScriptKittyOS/requisition-ts && cd requisition-ts && git checkout v0.3.0
gpg --import RELEASE-SIGNERS.asc
git verify-tag v0.3.0
.github/release/verify-tag.sh --release-signers "OPENPGP_FPRS" v0.3.0 0.3.0The keys are imported from the tag's own RELEASE-SIGNERS.asc. git verify-tag must report a good signature.
verify-tag.sh must print verify-tag: PASS: it makes the check the workflow's publish job makes, in a new, empty
keyring: an annotated tag on the commit checked out, signed by one of the keys OPENPGP_FPRS names, and
RELEASE-SIGNERS at the tag lists exactly those keys, each with the status release. Offline once cloned.
In the folder that holds the downloaded release file and RELEASE-SHA256SUMS:
sha256sum --strict -c RELEASE-SHA256SUMSEvery line must say OK. Offline.
RELEASE-SHA256SUMS is signed with ML-DSA-87 (FIPS 204, the pure form, empty context) by the release key before
the tag is made. In the folder of step 2 (which also holds RELEASE-SHA256SUMS.mldsa87.json and
RELEASE-KEYS.json), check it with the offline verifier kit's checker; KEY_SHA256 is the release key's fingerprint
(the SHA-256 of its raw public key) obtained another way:
python3 -I <kit>/verifier/verify_release_sums.py --mldsa <kit>/verifier/vendor/mldsa.py \
--sums RELEASE-SHA256SUMS --signature RELEASE-SHA256SUMS.mldsa87.json --keys RELEASE-KEYS.json \
--expect-key KEY_SHA256It must print PASS: .... Offline. <kit> is a checkout of the offline verifier kit, https://github.com/ScriptKittyOS/Requisition-Offline-Verifier
(standard library Python and the vendored pure-Python ML-DSA verifier, which the script refuses unless its SHA-256
is the pinned one).
The publishing job attests every release file. With the GitHub CLI:
gh attestation verify requisition-ts-0.3.0.tgz --repo ScriptKittyOS/requisition-ts \
--signer-workflow ScriptKittyOS/requisition-ts/.github/workflows/release.yml \
--source-ref refs/tags/v0.3.0 --deny-self-hosted-runnersThis asks GitHub for the attestation. To check it offline, fetch the trusted root once
(gh attestation trusted-root > trusted_root.jsonl) and give the bundle attached to the release:
gh attestation verify requisition-ts-0.3.0.tgz --repo ScriptKittyOS/requisition-ts --bundle v0.3.0.provenance.sigstore.json \
--custom-trusted-root trusted_root.jsonl --signer-workflow ScriptKittyOS/requisition-ts/.github/workflows/release.ymlThe attestation states that the file was built by that workflow, from that tag, on a GitHub-hosted runner (SLSA v1.0 Build Level 2, as GitHub describes its artifact attestations).
The build is reproducible: the same tag and the pinned tools give the same bytes.
git clone https://github.com/ScriptKittyOS/requisition-ts && cd requisition-ts && git checkout v0.3.0
# node 22.23.2 and npm 12.2.0 on PATH (.github/release/install-node.sh DIR and install-npm.sh DIR install them, by digest)
.github/release/build.sh v0.3.0 ../rebuilt
.github/release/check-sums.sh RELEASE-SHA256SUMS ../rebuiltcheck-sums.sh must print PASS: the folder holds exactly the file RELEASE-SHA256SUMS lists, with the reviewed
SHA-256. build.sh installs the dependencies with npm ci from package-lock.json (each checked by its sha512
integrity) without their install scripts.
npm serves the same file. Its digest must be the one in RELEASE-SHA256SUMS:
npm pack requisition-ts@0.3.0
sha256sum --strict -c RELEASE-SHA256SUMSThe release workflow publishes with npm trusted publishing, so npm records a provenance statement for the version
(shown on the package's page on npmjs.com). In a project that installs requisition-ts@0.3.0, npm audit signatures checks the registry signature and that provenance statement.