Skip to content

ci: Publish to RubyGems with trusted publishing - #150

Merged
georgeguimaraes merged 1 commit into
masterfrom
ci/trusted-publishing
Sep 15, 2026
Merged

georgeguimaraes merged 1 commit into
masterfrom
ci/trusted-publishing

Conversation

@georgeguimaraes

Copy link
Copy Markdown
Member

The API key publish can't run unattended: the owning rubygems.org account requires an OTP for API pushes, so both the 2.7.0 and 2.8.0 publish jobs died at gem push. Switch the job to trusted publishing: id-token: write, no GEM_HOST_API_KEY, and release-gem's default OIDC setup. This also enables the attestation it was warning about.

Requires a trusted publisher on the gem's rubygems.org page for sourcelevel/faraday-http-cache, workflow release-please.yml, no environment. After this merges and that's configured, a workflow_dispatch on master publishes the already-tagged 2.8.0.

The API key path cannot publish unattended: the owning account requires an OTP for API pushes, which is why the 2.7.0 and 2.8.0 publish jobs failed. Exchange the job's OIDC token for a RubyGems credential instead, which also lets release-gem attach attestations.
@georgeguimaraes
georgeguimaraes merged commit 5090892 into master Sep 15, 2026
10 checks passed
@georgeguimaraes
georgeguimaraes deleted the ci/trusted-publishing branch September 15, 2026 21:03
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