Skip to content

Attach a Sigstore attestation to released gems - #70

Merged
czj merged 1 commit into
mainfrom
ci/sigstore-attestation
Nov 22, 2026
Merged

czj merged 1 commit into
mainfrom
ci/sigstore-attestation

Conversation

@czj

@czj czj commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Released versions reach rubygems.org with no Sigstore provenance: the publish job runs a plain gem push through trusted publishing, and ruby/setup-ruby with ruby-version: "4.0" keeps RubyGems 4.0.x.

RubyGems 4.1 (released) makes gem push attach the attestation by itself on GitHub Actions when it pushes to rubygems.org, and the job already has id-token: write. The publish job now installs the latest RubyGems. Fixes #58.

  • Publish job only: the version job never pushes, so it skips the RubyGems update.
  • Identical in five gems: super-slim, gamba, crumbly, agentry and maptain get the same line.
  • To check: the next release's version page on rubygems.org should show the provenance.
Proof

gem search -r rubygems-update lists 4.1.0. The five release.yml were identical before this change and stay identical after it.

🤖 Generated with Claude Code

RubyGems 4.1 makes gem push attach the attestation on GitHub Actions; setup-ruby keeps 4.0.x unless asked for the latest.

Fixes #58

Assisted-by: Claude Opus 5.5 [Claude Code]
@czj
czj enabled auto-merge (squash) November 22, 2026 14:01
@czj
czj merged commit c0b43ff into main Nov 22, 2026
19 checks passed
@czj
czj deleted the ci/sigstore-attestation branch November 22, 2026 14:01
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.

Releases reach rubygems.org without a Sigstore attestation

1 participant