You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
deploy: crates_deploy and maven_deploy print the attestation URL into the GitHub release body #7434
crates.io and Maven Central have no attestation slot. github_deploy is usually in the same release.
Fix
When a release run includes github_deploy and crates_deploy or maven_deploy, the deploy tool appends a ## Attestations section to the release body with gh attestation verify lines for each registry artifact (the .crate and .jar are also uploaded as assets when attach = True).
Done when
A fixture release body carries the section with one line per registry artifact.
Remaining after #13089: attach the .crate as a release asset. crates_deploy builds no pinned .crate at analysis time, so a hermetic .crate build is needed before attach = True can upload it and the release workflow can attest it.
Second pass: needs a design decision before the last slice (attach the .crate).
gh attestation verify <name>-<ver>.crate only passes when the attested bytes equal what crates.io serves. Today crates_deploy publishes with cargo publish. Cargo repackages at deploy time: it normalizes Cargo.toml, adds Cargo.toml.orig, .cargo_vcs_info.json and a resolved Cargo.lock. A .crate built hermetically in a Bazel action would not match those bytes, so attaching and attesting it would publish a verify line that fails.
Options:
crates_deploy uploads the Bazel-built .crate itself through PUT /api/v1/crates/new instead of cargo publish. Then the registry bytes are the attested bytes. Cost: the publish metadata (deps, features, license, etc.) must be derived from the manifest without cargo.
Run the pinned cargo as cargo package --offline --no-verify in a build action, then publish that same file. Cost: cargo publish cannot take a prebuilt .crate, so this still needs option 1's upload path. Resolving Cargo.lock offline also needs a vendored index.
Keep cargo publish. crates_deploy writes the .crate from target/package/ to a run output, and the release workflow attaches and attests that file. Not hermetic, and it ties the two deploy runs together at run time.
Owner decision needed: should crates_deploy replace cargo publish with a direct crates.io upload (PUT /api/v1/crates/new) of a Bazel-built .crate (option 1 above), so the attached and attested .crate equals the registry bytes, or should the .crate attestation line be dropped from scope?
Activity
github-actions commentedon Nov 17, 2026
Unblocked: #7430 closed
TrapsterDK commentedon Nov 17, 2026
Remaining after #13089: attach the
.crateas a release asset. crates_deploy builds no pinned.crateat analysis time, so a hermetic.cratebuild is needed beforeattach = Truecan upload it and the release workflow can attest it.deploy: github_deploy lists attestation lines for crates_deploy and m…
deploy: github_deploy lists attestation lines for crates_deploy and m…
TrapsterDK commentedon Nov 18, 2026
Second pass: needs a design decision before the last slice (attach the
.crate).gh attestation verify <name>-<ver>.crateonly passes when the attested bytes equal what crates.io serves. Todaycrates_deploypublishes withcargo publish. Cargo repackages at deploy time: it normalizesCargo.toml, addsCargo.toml.orig,.cargo_vcs_info.jsonand a resolvedCargo.lock. A.cratebuilt hermetically in a Bazel action would not match those bytes, so attaching and attesting it would publish a verify line that fails.Options:
crates_deployuploads the Bazel-built.crateitself throughPUT /api/v1/crates/newinstead ofcargo publish. Then the registry bytes are the attested bytes. Cost: the publish metadata (deps, features, license, etc.) must be derived from the manifest without cargo.cargo package --offline --no-verifyin a build action, then publish that same file. Cost:cargo publishcannot take a prebuilt.crate, so this still needs option 1's upload path. ResolvingCargo.lockoffline also needs a vendored index.cargo publish.crates_deploywrites the.cratefromtarget/package/to a run output, and the release workflow attaches and attests that file. Not hermetic, and it ties the two deploy runs together at run time.No code changed this pass.
TrapsterDK commentedon Nov 18, 2026
Owner decision needed: should crates_deploy replace
cargo publishwith a direct crates.io upload (PUT /api/v1/crates/new) of a Bazel-built.crate(option 1 above), so the attached and attested.crateequals the registry bytes, or should the.crateattestation line be dropped from scope?TrapsterDK commentedon Nov 20, 2026
Owner: agents may cut v0.0.x releases and prepare everything for v0.1 (pins, release.yml, BCR entry). The v0.1.0 tag stays with the owner.
Assisted by Claude.