Skip to content

Release page: add the wheels and the sdist to SHA256SUMS and the build-provenance attestation #1466

Closed

Description

@DrunkOnJava

The GitHub release page carries the Python wheels and the sdist beside the CLI archives (v0.15.0's assets include seven .whl files and rvt-0.15.0.tar.gz), and docs/install.md promises them there. They are in neither SHA256SUMS nor the build-provenance attestation, which cover the CLI archives only, because release-binaries.yml builds the checksum list and the attestation subject from rvt-rs-* while its upload job attaches everything in dist/ (it downloads every artifact of the run, and when publish.yml calls it the run holds the wheel-* and sdist artifacts).

The PyPI copies are separate: the wheels on PyPI carry PEP 740 attestations from trusted publishing. Only the copies on the release page lack a checksum and an attestation.

Add them to the checksums and the attestation:

  • The checksums job downloads rvt-rs-* and runs sha256sum rvt-rs-*. It would also need the wheel-* and sdist artifacts, only when inputs.upload is true: a pull request or weekly run of release-binaries.yml has no wheels, and docker/stage.sh checks the Linux archives against SHA256SUMS with --ignore-missing, so it is unaffected by extra lines.
  • The upload job's actions/attest subject path would add the wheels and the sdist (dist/*.whl, dist/rvt-*.tar.gz), so that gh attestation verify <file> -R DrunkOnJava/rvt-rs works for each, and so that the one attested SHA256SUMS checks every file on the page.
  • docs/install.md and RELEASE.md stop saying the checksums and attestations cover the CLI archives only.

Not done in #1460 because the checksum job is the hardest job of a release to test before a real tag, and a mistake there leaves a half-published release. Test it on a branch with a workflow_dispatch of release-binaries.yml that has wheels to hand (or a staged release) before relying on it.

Refs #1457.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cipriority:P3type:ci

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions