Skip to content

Use trusted publishing for crates.io#18709

Merged
zanieb merged 1 commit intomainfrom
zb/trusted-publish-crates
Mar 25, 2026
Merged

Use trusted publishing for crates.io#18709
zanieb merged 1 commit intomainfrom
zb/trusted-publish-crates

Conversation

@zanieb
Copy link
Copy Markdown
Member

@zanieb zanieb commented Mar 25, 2026

Moves from a crates.io API key to trusted publishing.

Setup of trusted publishing is automated via a script which creates the trust relationship and disables publish by API key. The main breakage here is that now, when we add a new crate, a release will fail. The script is invoked during release.sh to catch this case and supports creating a stub crate so the release can subsequently succeed — but this will require the release author to have a local crates.io API key with permissions to create projects and configure publishing. I tested this script a few times end-to-end, but would not be surprised if it bites us in the future.

@zanieb zanieb force-pushed the zb/trusted-publish-crates branch from 9fc6327 to bef0153 Compare March 25, 2026 12:32
@zanieb zanieb marked this pull request as ready for review March 25, 2026 12:34
@zanieb zanieb added the build:skip-release Disable building release binaries for a pull request label Mar 25, 2026
@zanieb zanieb force-pushed the zb/trusted-publish-crates branch from bef0153 to f47fbdd Compare March 25, 2026 12:48
@zanieb zanieb force-pushed the zb/trusted-publish-crates branch from f47fbdd to 2a9fbc3 Compare March 25, 2026 13:07
@zanieb zanieb force-pushed the zb/trusted-publish-crates branch from 2a9fbc3 to eab0b03 Compare March 25, 2026 13:10
@zanieb zanieb merged commit edc1beb into main Mar 25, 2026
52 checks passed
@zanieb zanieb deleted the zb/trusted-publish-crates branch March 25, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:skip-release Disable building release binaries for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants