Skip to content

Add attestations for release artifacts and Docker images#2827

Merged
woodruffw merged 3 commits intoastral-sh:mainfrom
shaanmajid:artifact-attestations
Mar 14, 2026
Merged

Add attestations for release artifacts and Docker images#2827
woodruffw merged 3 commits intoastral-sh:mainfrom
shaanmajid:artifact-attestations

Conversation

@shaanmajid
Copy link
Contributor

@shaanmajid shaanmajid commented Feb 16, 2026

Summary

Adds GitHub artifact attestations (SLSA provenance) for release artifacts and Docker images.

Users will be able to verify artifacts with:

# Release artifacts
gh attestation verify ty-x86_64-unknown-linux-gnu.tar.gz --repo astral-sh/ty

# Docker images
gh attestation verify oci://ghcr.io/astral-sh/ty:latest --repo astral-sh/ty

Test Plan

Tested end-to-end release and attestation verification on my fork.

Verify release artifacts:

gh release download 0.0.17 --repo shaanmajid/ty --pattern "ty-x86_64-unknown-linux-gnu.tar.gz" --dir /tmp
gh attestation verify /tmp/ty-x86_64-unknown-linux-gnu.tar.gz --repo shaanmajid/ty

Verify Docker images:

gh attestation verify oci://ghcr.io/shaanmajid/ty:0.0.17 --repo shaanmajid/ty
gh attestation verify oci://ghcr.io/shaanmajid/ty:alpine --repo shaanmajid/ty
gh attestation verify oci://ghcr.io/shaanmajid/ty:debian --repo shaanmajid/ty

Notes

@shaanmajid shaanmajid changed the title Artifact attestations Add attestations for release artifacts and Docker images Feb 16, 2026
@shaanmajid
Copy link
Contributor Author

cc @woodruffw per astral-sh/ruff#23111 (comment) :^)

@woodruffw woodruffw self-requested a review February 16, 2026 20:50
@woodruffw
Copy link
Member

Thanks @shaanmajid, assigning myself! I should be able to review this tomorrow.

@woodruffw woodruffw added the ci Related to internal CI tooling label Feb 16, 2026
@shaanmajid shaanmajid force-pushed the artifact-attestations branch from 2952c81 to 600839a Compare February 23, 2026 19:16
@shaanmajid
Copy link
Contributor Author

Rebased onto latest main to resolve a merge conflict. No rush, but ready for review whenever you get a chance!

@MichaReiser
Copy link
Member

friendly ping @woodruffw

Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shaanmajid, LGTM!

"actions/upload-artifact" = "b7c566a772e6b6bfb58ed0dc250532a479d7789f" # v6.0.0
"actions/download-artifact" = "37930b1c2abaa49bbe596cd826c3c89aef350131" # v7.0.0
"actions/attest-build-provenance" = "c074443f1aee8d4aeeae555aebba3282517141b2" #v2.2.3
"actions/attest-build-provenance" = "00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8" # v3.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need to be done with this PR, but I believe there's a v4 series of attest-build-provenance (which in turn just makes it a wrapper around actions/attest). So maybe a good follow-up would be bumping to that or replacing with actions/attest entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to bump to v4 either in this PR or later (although will note that at the time of writing, it's less than a week old). Would love to switch to just actions/attest, but I believe that would need upstream support from cargo-dist. Will leave an issue there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with waiting on the bump!

@MichaReiser
Copy link
Member

@woodruffw can we merge this or are we waiting for another change?

@woodruffw
Copy link
Member

Nope, it's good to go (modulo the conflict).

@shaanmajid
Copy link
Contributor Author

Rebased and solved the dist-workspace.toml conflicts. Should be ready to merge :^) @MichaReiser @woodruffw

@woodruffw woodruffw merged commit 2e3157b into astral-sh:main Mar 14, 2026
18 checks passed
@shaanmajid shaanmajid deleted the artifact-attestations branch March 14, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants