Skip to content

Comments

Add id-token:write permissions to release-plz release job#86

Merged
r-n-o merged 2 commits intomainfrom
rno/update-workflow-token-for-trusted-publishing
Feb 20, 2026
Merged

Add id-token:write permissions to release-plz release job#86
r-n-o merged 2 commits intomainfrom
rno/update-workflow-token-for-trusted-publishing

Conversation

@r-n-o
Copy link
Contributor

@r-n-o r-n-o commented Feb 20, 2026

From https://release-plz.dev/docs/github/quickstart#2-set-the-cargo_registry_token-secret

If you want to use trusted publishing, don't use the rust-lang/crates-io-auth-action action, and don't set the CARGO_REGISTRY_TOKEN secret (if you already use CARGO_REGISTRY_TOKEN, remove it from your workflow file entirely). release-plz implements the same crates-io API calls of the rust-lang/crates-io-auth-action action, and uses them to obtain a token when necessary.

Set id-token: write in the permissions of the job that runs release-plz release.

@r-n-o r-n-o requested review from annieke and ethankonk February 20, 2026 22:54
Copy link
Contributor

@ethankonk ethankonk left a comment

Choose a reason for hiding this comment

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

Are you planning on updating the rest of the workflow in a separate PR? Just wondering cuz I believe the CARGO_REGISTRY_TOKEN is still there

@r-n-o
Copy link
Contributor Author

r-n-o commented Feb 20, 2026

@ethankonk good catch! Pushed this up!

@r-n-o r-n-o merged commit 044bb74 into main Feb 20, 2026
3 checks passed
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.

3 participants