Skip to content

ci(release): use crates.io trusted publishing (no secret) - #18

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/trusted-publishing-eda9
Aug 16, 2026
Merged

ci(release): use crates.io trusted publishing (no secret)#18
cursor[bot] merged 1 commit into
mainfrom
cursor/trusted-publishing-eda9

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

You’re right — with Trusted Publishing you don’t need a long-lived CARGO_REGISTRY_TOKEN secret. The failed 0.7.3 publish used the old secret-based path and got 403 authentication failed.

Change

Switch Release’s publish job to OIDC:

  • permissions: id-token: write (+ contents: read)
  • rust-lang/crates-io-auth-action@v1 → short-lived token
  • cargo publish uses that token (not secrets.CARGO_REGISTRY_TOKEN)

One-time crates.io setup (you)

Before this works, add a Trusted Publisher on the crate (owner UI):

  • Owner: beyondoss
  • Repo: slipstream
  • Workflow: release.yml
  • Environment: empty

https://crates.io/crates/beyond-slipstream/settings/new-trusted-publisher

After merge

main is still at 0.7.3 while crates.io is 0.7.2, so the Release workflow on this merge should publish 0.7.3 automatically once the trusted publisher is configured.

Open in Web Open in Cursor 

Replace the long-lived CARGO_REGISTRY_TOKEN secret with
rust-lang/crates-io-auth-action + id-token: write. Publishing no longer
needs a GitHub Actions secret once a Trusted Publisher is configured on
crates.io for beyondoss/slipstream / release.yml.

Co-authored-by: Jared Lunde <jared.lunde@gmail.com>
@jaredLunde
jaredLunde marked this pull request as ready for review August 16, 2026 00:58
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor
cursor Bot merged commit 3c9de8e into main Aug 16, 2026
1 check passed
@cursor
cursor Bot deleted the cursor/trusted-publishing-eda9 branch August 16, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants