Repository navigation
ci(031): increment 6, the release workflow with build provenance - #163
Conversation
AI review (no-findings)I'll review the two changed files: the new Workflow structure and security
Logic and correctness
Spec increment The increment 6 description accurately matches the workflow: tag verification, bindings reuse, CLI build/archive/attest, npm pack/attest, gated publish, and the documented open items (no CLI version command, macOS/Windows archive reproducibility, missing SBOMs, hosted release manifest). No concrete defects found. {"head": "f9cf0d27ebb590587a3dd0005bb196e674cca48b", "verdict": "no-findings", "findings": []}Subject: 3670e6b...f9cf0d2, diff digest 8048a5abd0fde337aa52acb7a92120b921387a81d5e882f90394edd523594c58, 1 call(s). An AI comment is not an approval. |
3670e6b to
419b664
Compare
f9cf0d2 to
5f5380a
Compare
AI review (no-findings)Reviewing the new release workflow and the spec increment. Workflow:
Spec: The increment 6 prose accurately describes the workflow: tag verification, No concrete defects found. {"head": "5f5380a5c7a0893f6b851a387b35baae8e370a00", "verdict": "no-findings", "findings": []}Subject: 419b664...5f5380a, diff digest 8048a5abd0fde337aa52acb7a92120b921387a81d5e882f90394edd523594c58, 1 call(s). An AI comment is not an approval. |
419b664 to
912471d
Compare
5f5380a to
17d292e
Compare
AI review (findings)Reviewing the new release workflow and the spec increment 6 additions. Workflow structure and tag validation look sound: the
The job never sets The spec text in increment 6 is consistent with the workflow's behaviour and correctly acknowledges the open items (no version command, bsdtar non-reproducibility). {"head": "17d292e7229e1c9246564bd5f6616a2b5201e142", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": null, "summary": "The `npm` job never sets NODE_AUTH_TOKEN: setup-node with registry-url writes .npmrc expecting that variable for registry authentication, so every npm publish call will fail with an auth error."}]}Subject: 912471d...17d292e, diff digest 8048a5abd0fde337aa52acb7a92120b921387a81d5e882f90394edd523594c58, 1 call(s). An AI comment is not an approval. |
9ad8a9b to
385371a
Compare
17d292e to
0bbc6c0
Compare
AI review (no-findings)Reading the diff: new Security and correctness review of
No concrete defects found. {"head": "0bbc6c0fdf91d6dfe88c1ee3cae6887aa6489c5b", "verdict": "no-findings", "findings": []}Subject: 385371a...0bbc6c0, diff digest b2ce8acaf8d0219ebe59d943bbaa01a41226b87055622c3030f21b4a8d1fd63d, 1 call(s). An AI comment is not an approval. |
9a461fe to
e299fa3
Compare
0bbc6c0 to
b346e93
Compare
AI review (no-findings)Reviewing the PR: a new release workflow ( Governance check AGENTS.md states any change under Workflow security
Spec text The increment-6 description accurately reflects the workflow structure and honestly records the open items (no version command, non-reproducible macOS/Windows archives, unimplemented 3.9.1/3.9.2/3.9.3 items, no No concrete defect found. {"head": "b346e93343f4feaf8c61129ebf9dd4925ca54a0e", "verdict": "no-findings", "findings": []}Subject: e299fa3...b346e93, diff digest b2ce8acaf8d0219ebe59d943bbaa01a41226b87055622c3030f21b4a8d1fd63d, 1 call(s). An AI comment is not an approval. |
e299fa3 to
d703970
Compare
b346e93 to
412ea99
Compare
AI review (findings)Reading the diff: a new release workflow ( Governance note checked: AGENTS.md says any change under Security review of the workflow:
Concrete defect found: In the git -c gpg.format=ssh \
-c gpg.ssh.allowedSignersFile=tools/rustev-release/allowed_signers \
verify-tag "refs/tags/$TAG"The checkout immediately above this (line ~52) places the tag's own tree on disk. A repository collaborator with write access can therefore push a commit that adds their own SSH public key to The {"head": "412ea99fa9e5459a46017ab0e21beb6712c24db2", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 71, "summary": "The SSH allowed_signers file used to verify the release tag is read from the same commit the tag points to, so a collaborator with push access can add their own key to that file, sign a commit with it, and bypass the owner-exclusive release authorization gate."}]}Subject: d703970...412ea99, diff digest b2ce8acaf8d0219ebe59d943bbaa01a41226b87055622c3030f21b4a8d1fd63d, 1 call(s). An AI comment is not an approval. |
d703970 to
7c4ea89
Compare
412ea99 to
ba6fed2
Compare
AI review (findings)Reading through the diff: a new release workflow is introduced ( Workflow structure and security review:
Concrete defect found: In the npm install -g [email protected]
test "$(npm --version)" = 11.21.0The version check afterward runs the binary it just installed, so it cannot detect a version substitution attack at the registry level. By contrast, every {"head": "ba6fed2fc3d033ba93c43c1c11ea5f0181066cc8", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 248, "summary": "npm is installed pinned by version string only (npm install -g [email protected]), not by content hash; the post-install version check cannot detect a registry-side substitution, unlike the cargo --locked and digest-pinned container images used elsewhere in the same workflow."}]}Subject: 7c4ea89...ba6fed2, diff digest b2ce8acaf8d0219ebe59d943bbaa01a41226b87055622c3030f21b4a8d1fd63d, 1 call(s). An AI comment is not an approval. |
ba6fed2 to
a2c5447
Compare
AI review (findings)Reviewing the new release workflow and the spec increment carefully. Workflow structure and security checks: The Concrete defect — In the node -e '
const fs = require("fs"); const f = process.argv[1] + "/package.json";
...
' "$dir"When Node.js is started with No other concrete defects were found. The governance requirement that {"head": "a2c54475359c0568ec9d3757eafcc17293c5f7ea", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 224, "summary": "The node -e script reads process.argv[1] to get the directory argument, but Node.js sets process.argv[1] to the empty string when using -e; the user-supplied \"$dir\" argument is at process.argv[2], so f becomes \"/package.json\" and the readFileSync call throws ENOENT, failing every pack iteration."}]}Subject: 7c4ea89...a2c5447, diff digest 9d2c263c2c49689012ed92afa2e34870522989fa489db0b97196b946d968938e, 1 call(s). An AI comment is not an approval. |
a2c5447 to
a50c0ec
Compare
AI review (no-findings)Reviewing the new release workflow and spec increment for correctness and security.
The Increment 6 description accurately reflects the workflow structure, including the gating via the No concrete defects found. {"head": "a50c0eccb0d8b544ddbfafb466fd846118172a56", "verdict": "no-findings", "findings": []}Subject: 7c4ea89...a50c0ec, diff digest 08bcd5a4c809fbb9fb041a8d1969c2c682506b6639f266b949904eb4ba5de5a5, 1 call(s). An AI comment is not an approval. |
a50c0ec to
da662c2
Compare
AI review (no-findings)Reviewing the two changed paths: a new Workflow security and correctness
Spec text The prose in {"head": "da662c23c3b0c76c30aeb7095819f924f366637f", "verdict": "no-findings", "findings": []}Subject: 6060167...da662c2, diff digest 08bcd5a4c809fbb9fb041a8d1969c2c682506b6639f266b949904eb4ba5de5a5, 1 call(s). An AI comment is not an approval. |
da662c2 to
c697c11
Compare
AI review (findings)Looking at this PR, which adds Security and correctness pass on
Finding: The bindings:
name: bindings
needs: tag
uses: ./.github/workflows/bindings.ymlNo job-level Spec text: The spec increment 6 description is internally consistent with the workflow. The open items (no CLI version command, non-reproducible bsdtar archives, missing SBOMs, undeployed npm-publish Environment) are honestly documented. {"head": "c697c1109406dacf6e6fbabda7545ab7dbe32f67", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 107, "summary": "The `bindings` job calls bindings.yml as a reusable workflow with no job-level permissions override, leaving it constrained to the top-level `contents: read`; if bindings.yml's jobs declare `id-token: write` or `attestations: write` (as expected for a workflow that produces signed platform addons), those permissions are denied at runtime and addon artifact uploads would fail, breaking the downstream `pack` job."}]}Subject: 21a00fc...c697c11, diff digest 08bcd5a4c809fbb9fb041a8d1969c2c682506b6639f266b949904eb4ba5de5a5, 1 call(s). An AI comment is not an approval. |
.github/workflows/release.yml runs only when dispatched by hand on the signed release tag. It verifies the tag against the release set and the allowed signers, runs spec 027's bindings workflow at the tag, builds and smoke tests the rustev CLI on the seven platforms, packs the nine npm members with exactly their private guard removed, and attests every archive and tarball with SLSA v1.0 build provenance (Build Level 2). The npm job publishes with npm provenance through trusted publishing only when dispatched with publish-npm and after the owner approves the npm-publish Environment. Nothing is dispatched, configured or published.
c697c11 to
fd17f50
Compare
AI review (no-findings)Reviewing the new Workflow security model
Tag verification chain The Pack / npm steps
Known limitations (documented) macOS/Windows archives use Spec update Increment 6 accurately describes the workflow behaviour and open items. The long run-on sentence in the spec paragraph is a readability issue but not a defect. No concrete defect found. {"head": "fd17f501142d8dc30bf927f2420d2882d6beb01d", "verdict": "no-findings", "findings": []}Subject: 21a00fc...fd17f50, diff digest d162f17c8fe7f888fed62bbbe45c0d8be73ed2df42465344e59fd26eb34e6090, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the new Actions pinning: All five action references are pinned by SHA digest with version comments. No issues. Input handling: The Tag verification: The npm integrity check: Permissions: Top-level permissions are Artifact download in bsdtar non-reproducibility: The workflow explicitly branches on
Spec consistency: The increment 6 description in the spec accurately reflects the workflow's structure, the No concrete defects found. {"head": "3daac4ddbe71a0dfeadf4d9553390870574be75d", "verdict": "no-findings", "findings": []}Subject: c25ae7d...3daac4d, diff digest d162f17c8fe7f888fed62bbbe45c0d8be73ed2df42465344e59fd26eb34e6090, 1 call(s). An AI comment is not an approval. |
Summary
Spec 031 increment 6: the release workflow with build provenance. Increment 5 (#162) has merged; this PR is rebased onto
main.This is a workflow change: it needs the owner's approval of the
statecraft-review-exceptionEnvironment..github/workflows/release.ymlruns only when dispatched by hand on the signed release tag (gh workflow run release.yml --ref vX.Y.Z -f tag=vX.Y.Z). It is not a required job and changes no managed file.tag: refuses a tag other than the release set's, a lightweight tag, a signature that does not verify againsttools/rustev-release/allowed_signers, or a dispatch on another ref.bindings: spec 027's bindings workflow at the tag; supplies each platform's addon.cli:rustevon the seven platforms in the bindings images at the commit's source date;--helpand aplan checkof the lodging reference plan that must equal its golden; archived with the license and attested.pack:rustev-release manifests, the WebAssembly package built asmake bindingsdoes, each addon staged, exactly theprivateguard removed, the nine npm members packed in release order and attested.actions/attest-build-provenance4.2.2, keyless Sigstore signatures over SLSA v1.0 provenance (Build Level 2, 031 3.9.5).npm: publishes with npm provenance through trusted publishing (no token), only withpublish-npm: trueand after the owner approves thenpm-publishEnvironment. Nothing here dispatches it, creates that Environment or the trusted publisher, or publishes.Review findings answered
17d292e),npmjob never setsNODE_AUTH_TOKEN: fixed differently. Publication is by npm trusted publishing (OIDC), which needs no token but needs npm 11.5.1 or later (Node 22 bundles npm 10). The job now installs npm 11.21.0 pinned and checks it, and no longer passesregistry-url, so no.npmrcexpects a token.ba6fed2), npm pinned by version only: fixed. The job downloads the npm 11.21.0 tarball, checks its SHA-512 against the registry integrity recorded in the workflow (sha512-Zov8...qivPg==, verified locally), and installs that file with--ignore-scripts.a2c5447),process.argv[1]undernode -eis empty: not so. With-ethere is no script path, soargv[1]is the first argument:node -e 'console.log(JSON.stringify(process.argv.slice(1)))' integrations/xprints["integrations/x"](Node 24.6.0; the same layout on Node 22). A comment in the step now states it.c697c11), thebindingscall would denyid-token/attestations: not applicable.bindings.ymldeclares onlypermissions: contents: readat the top level and no job asks for more (grep -n 'id-token\|attestations' .github/workflows/bindings.ymlfinds nothing);upload-artifactneeds no token permission. The call now statescontents: readexplicitly with that reason; the attestations are made inpack.Open, recorded in 031's record
Checks
actionlint .github/workflows/release.yml: clean.make gate: passed.spec-spine couple: OK.