Skip to content

Add hardened trusted publishing workflow#348

Merged
lopopolo merged 9 commits intotrunkfrom
codex/trusted-publishing-environment
Feb 22, 2026
Merged

Add hardened trusted publishing workflow#348
lopopolo merged 9 commits intotrunkfrom
codex/trusted-publishing-environment

Conversation

@lopopolo
Copy link
Member

Summary

  • add a Publish GitHub Actions workflow triggered by creation of semver tags (vX.Y.Z)
  • use crates.io trusted publishing via OIDC (id-token: write) and rust-lang/crates-io-auth-action
  • add strict tag and version validation before publishing
  • harden the job with pinned action SHAs, minimal permissions, and no cache actions
  • bind publishing to dedicated GitHub Actions environment crates-io-publish

Notes

To complete setup, configure the crates-io-publish environment in repository settings and use that exact name when registering trusted publishers on crates.io.

@lopopolo lopopolo merged commit d67101e into trunk Feb 22, 2026
19 checks passed
@lopopolo lopopolo deleted the codex/trusted-publishing-environment branch February 22, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant