Add Trusted Publishing workflow for RubyGems releases - #89
Merged
Conversation
Replace the static rubygems.org API key with a GitHub Actions OIDC-based Trusted Publishing workflow. No long-lived secret is stored; short-lived tokens are exchanged at publish time via dd-octo-sts and rubygems.org Trusted Publishing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
DDuongNguyen
marked this pull request as draft
July 7, 2026 19:00
DDuongNguyen
marked this pull request as ready for review
July 8, 2026 14:22
lloeki
reviewed
Jul 8, 2026
Defines the OIDC claim requirements for the self.publish policy used by dd-octo-sts-action in the publish workflow. Restricts token issuance to manual workflow_dispatch runs from master in the rubygems.org environment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ddrthall
approved these changes
Jul 8, 2026
Replace the old manual gem push instructions (which required local API key credentials) with the new GitHub Actions workflow process. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep the local build instructions (rake build) separate from the new Trusted Publishing release instructions. Add changelog entry for the publishing workflow change. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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 does this PR do?
Replace the static rubygems.org API key with a GitHub Actions OIDC-based Trusted Publishing workflow.
Motivation
SDLC Security review
Additional Notes
Part of the SDLC Security audit: https://datadoghq.atlassian.net/wiki/spaces/~776423855/pages/6936626815/Ruby+Package+Publishing