Skip to content

Disable Sigstore attestations in publish workflow - #94

Merged
ddrthall merged 1 commit into
masterfrom
ryan.hall/disable-attestations
Sep 9, 2026
Merged

ddrthall merged 1 commit into
masterfrom
ryan.hall/disable-attestations

Conversation

@ddrthall

@ddrthall ddrthall commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

What

Disables the experimental Sigstore attestation feature in the rubygems/release-gem action by setting attestations: false.

Why

The attestation patch (rubygems-attestation-patch.rb) is injected via RUBYOPT and activates the system openssl 3.2.2 (default gem in Ruby 3.3) before Bundler can load openssl 4.0.2 from the lockfile. This causes:

You have already activated openssl 3.2.2, but your Gemfile requires openssl 4.0.2.
Since openssl is a default gem, you can either remove your dependency on it or try
updating to a newer version of bundler that supports openssl as a default gem.
(Gem::LoadError)

Impact

  • The release process is otherwise identical: gem build, git tag, gem push via OIDC Trusted Publishing
  • Attestations are marked [EXPERIMENTAL] in the release-gem action
  • The previous manual release process (rake release with local credentials) never had attestations
  • No gem consumers verify Sigstore attestations for this package

The rubygems-attestation-patch.rb injected by release-gem activates the
system openssl 3.2.2 (default gem in Ruby 3.3) before Bundler can load
openssl 4.0.2 from the lockfile, causing a Gem::LoadError on
'bundle exec rake release'.

Disabling attestations removes the RUBYOPT injection and unblocks gem
publishing. The release process is otherwise identical: gem build, git
tag, gem push via OIDC Trusted Publishing.
@ddrthall
ddrthall requested a review from a team as a code owner September 9, 2026 19:21
@ddrthall
ddrthall merged commit 4472dd7 into master Sep 9, 2026
4 checks passed
@ddrthall
ddrthall deleted the ryan.hall/disable-attestations branch September 9, 2026 19:23
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.

2 participants