Skip to content

ci(rust): publish to crates.io via Trusted Publishing (OIDC)#2346

Merged
lucasmcdonald3 merged 4 commits into
mainfrom
rust-release-oidc-trusted-publishing
Jul 1, 2026
Merged

ci(rust): publish to crates.io via Trusted Publishing (OIDC)#2346
lucasmcdonald3 merged 4 commits into
mainfrom
rust-release-oidc-trusted-publishing

Conversation

@lucasmcdonald3

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes: Switch the Rust release workflow's cargo publish step from the long-lived CARGO_REGISTRY_TOKEN secret to crates.io Trusted Publishing (OIDC) via rust-lang/crates-io-auth-action.

Prerequisite: a crates.io Trusted Publisher must be configured for aws-db-esdk (this repo + rust-release.yml + crates-io-publish environment) before the next release; the CARGO_REGISTRY_TOKEN repo secret can be removed once an OIDC release is validated.

Squash/merge commit message, if applicable: ci(rust): publish to crates.io via Trusted Publishing (OIDC)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Replace the long-lived CARGO_REGISTRY_TOKEN secret with crates.io
Trusted Publishing: rust-lang/crates-io-auth-action exchanges the
workflow's GitHub OIDC token for a short-lived crates.io token that is
automatically revoked when the job ends.
@lucasmcdonald3 lucasmcdonald3 requested a review from a team as a code owner June 22, 2026 17:47
@github-actions

Copy link
Copy Markdown

Detected changes to the release files or to the check-files action

@github-actions

Copy link
Copy Markdown

Changes to the release files or the check-files action requires 2 approvals from CODEOWNERS

@github-actions

Copy link
Copy Markdown

Detected changes to the release files or to the check-files action

@github-actions

Copy link
Copy Markdown

Detected changes to the release files or to the check-files action

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Detected changes to the release files or to the check-files action

@lucasmcdonald3 lucasmcdonald3 merged commit b69c6db into main Jul 1, 2026
43 of 68 checks passed
@lucasmcdonald3 lucasmcdonald3 deleted the rust-release-oidc-trusted-publishing branch July 1, 2026 21:02
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