Skip to content

deploy: crates_deploy and maven_deploy print the attestation URL into the GitHub release body #7434

Closed

Description

@TrapsterDK

Part of #7361.

Where

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.

Blocked on: #7430

Activity

  1. added
    P3
    blocked
    model:haiku
    on Nov 5, 2026
  2. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    Unblocked: #7430 closed

  3. removed
    blocked
    on Nov 17, 2026
  4. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    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.

  5. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    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:

    1. 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.
    2. 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.
    3. 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.

    No code changed this pass.

  6. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    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?

  7. added
    model:human
    model:opus
    and removed
    model:human
    on Nov 18, 2026
  8. TrapsterDK commented on Nov 20, 2026

    @TrapsterDK
    CollaboratorAuthor

    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.

  9. removed
    model:haiku
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3model:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions