Skip to content

ci(release): publish via OIDC trusted publishing - #95

Merged
ronaldtse merged 1 commit into
mainfrom
ci/oidc-trusted-publishing
Aug 18, 2026
Merged

ci(release): publish via OIDC trusted publishing#95
ronaldtse merged 1 commit into
mainfrom
ci/oidc-trusted-publishing

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Publishes to rubygems.org via OIDC trusted publishing: rubygems/configure-rubygems-credentials (v2.1.0, pinned) exchanges the job's OIDC token for a short-lived API key; id-token: write added to the package-and-release job.
  • Drops the RNP_RUBYGEMS_API_KEY env/credentials-file heredoc, its if: secret != '' gate, and the stray no-arg gem signin.
  • The gem's trusted publisher (rnpgp/ruby-rnp @ test-and-release.yml) is configured on rubygems.org; the repo-level secret can be deleted once this merges.

Test plan

  • YAML parses.
  • Next v* tag release pushes keylessly.

Replace the RNP_RUBYGEMS_API_KEY credentials-file publish path with the
rubygems/configure-rubygems-credentials OIDC exchange (id-token: write
added to the job). The gem's trusted publisher
(rnpgp/ruby-rnp @ test-and-release.yml) is configured on rubygems.org.
@ronaldtse
ronaldtse merged commit 762b43f into main Aug 18, 2026
36 checks passed
@ronaldtse
ronaldtse deleted the ci/oidc-trusted-publishing branch August 18, 2026 08:56
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.

1 participant