Skip to content

Add Trusted Publishing workflow for RubyGems releases - #89

Merged
DDuongNguyen merged 4 commits into
masterfrom
yoon/trusted-publishing
Jul 9, 2026
Merged

Add Trusted Publishing workflow for RubyGems releases#89
DDuongNguyen merged 4 commits into
masterfrom
yoon/trusted-publishing

Conversation

@DDuongNguyen

@DDuongNguyen DDuongNguyen commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

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

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
DDuongNguyen requested a review from a team as a code owner July 7, 2026 18:59
@DDuongNguyen
DDuongNguyen marked this pull request as draft July 7, 2026 19:00
@DDuongNguyen
DDuongNguyen marked this pull request as ready for review July 8, 2026 14:22
Comment thread .github/workflows/publish.yml
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>
DDuongNguyen and others added 2 commits July 8, 2026 14:58
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>
@DDuongNguyen
DDuongNguyen merged commit 163ab90 into master Jul 9, 2026
4 checks passed
@DDuongNguyen
DDuongNguyen deleted the yoon/trusted-publishing branch July 9, 2026 18:48
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.

3 participants