Repository navigation
Conversation
Replace the long-lived CARGO_REGISTRY_TOKEN secret with a short-lived token minted by rust-lang/crates-io-auth-action (pinned to v1.0.6), matching hypersync-client-solana and hyperfuel-client-rust. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Configure OIDC publishing authentication .github/workflows/publish.yaml |
The workflow grants id-token: write permission and uses the crates.io authentication action's token output for CARGO_REGISTRY_TOKEN. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Possibly related PRs
- enviodev/hypersync-client-rust#139: Updates crate versions and release packaging in the same repository; this PR changes the workflow used to publish those crates.
Suggested reviewers: ozgrakkurt
Merge Risk: 
Minimal · up to 67dad
-
Publishing now uses short-lived credentials. Ensure matching Trusted Publisher entries are configured before release.
Pre-merge checks: 
4
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Resolves HOS-2748.
Summary
publish.yamlnow gets a short-lived crates.io token fromrust-lang/crates-io-auth-action, which exchanges a GitHub OIDC token for it. It no longer reads the long-livedCARGO_REGISTRY_TOKENsecret.id-token: write, and the action is pinned to the v1.0.6 commit SHA, as CodeRabbit suggested on publish.yaml: switch to crates.io trusted publishing (OIDC) #128.Why
The
CARGO_REGISTRY_TOKENsecret expired on 2026-10-16, which blocked the hypersync-schema 0.5.0 release. I rotated it today as a stopgap; the new token expires 2027-10-29. With trusted publishing, nothing needs rotating.crates.io setup (done)
enviodev/hypersync-client-rust/publish.yamlwith no environment, so this can merge whenever.After merging
CARGO_REGISTRY_TOKENrepo secret and revoke thegithub-actions-enviodev-2026-10crates.io token, once one publish has gone through this flow.🤖 Generated with Claude Code
Summary by CodeRabbit