Authenticate release workflow to Cloudsmith via OIDC#70
Draft
jmeredithg wants to merge 2 commits into
Draft
Conversation
Push the gem to Cloudsmith (ruby.cloudsmith.io/gusto/gusto) instead of RubyGems, using the same GitHub OIDC -> Cloudsmith token exchange pattern merged in Gusto/virtuous-pdf#452.
This was referenced Jul 14, 2026
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.
What
Test PR for the Cloudsmith migration effort. Repoints the
gem pushstep from RubyGems to Cloudsmith, using the same GitHub OIDC -> Cloudsmith token exchange pattern already merged and working in Gusto/virtuous-pdf#452.Changes
permissions: id-token: write(required to mint the OIDC token).cloudsmith-io/cloudsmith-cli-action@v2(oidc-auth-only: "true"), which exchanges the GitHub OIDC token for a short-lived Cloudsmith token and exports it asCLOUDSMITH_API_KEY— no static secret needed.gem push fixture_kit-*.gem --host https://ruby.cloudsmith.io/gusto/gusto, authenticated viaGEM_HOST_API_KEY="Bearer ${CLOUDSMITH_API_KEY}"(Cloudsmith's documented format for RubyGems pushes).secrets.RUBYGEMS_API_KEYreference removed since it's no longer used; the secret itself can be cleaned up from repo settings separately once this is confirmed working.Why this repo first
Marked as a test case: this is a near-exact analog of the already-merged virtuous-pdf fix (plain
gem push, nobundle installstep to also repoint), so it's the lowest-risk way to confirm the pattern works before rolling it out to the rest of the RubyGems/npm/NuGet/Docker repos identified in the Cloudsmith migration audit.Opened as draft — holding for a real release run (or manual dispatch, if you'd like me to add a
workflow_dispatchtrigger) to confirm the push actually succeeds against Cloudsmith before merging.