fix(ci): adding crates.io trusted publishing, deleting token publishing - #109
Merged
Conversation
dotkas
enabled auto-merge (squash)
August 13, 2026 13:09
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release pipeline to publish oapi-codegen to crates.io using crates.io Trusted Publishing (GitHub OIDC) instead of a long-lived CARGO_REGISTRY_TOKEN secret, and removes the now-obsolete secret-probing workflow.
Changes:
- Add job-scoped
id-token: write+contents: readpermissions for the crates.io publish job and authenticate viarust-lang/crates-io-auth-action@v1. - Switch
cargo publishto use the short-lived token output from the trusted publishing auth step. - Delete the scheduled/manual workflow that probed the legacy crates.io secret token.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/deploy.yml | Uses OIDC Trusted Publishing to mint a short-lived crates.io token and publishes with it (no long-lived secret). |
| .github/workflows/check-crates-io-credentials.yml | Removes the workflow that checked validity of the deleted long-lived crates.io token secret. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
|
🎉 This PR is included in version 1.0.1-dev.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.