Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand All @@ -51,7 +51,7 @@ jobs:
-v "$PWD:/work" -w /work \
registry.access.redhat.com/ubi8/ruby-33@sha256:5eb6e7843b98f77ad214b9a7ae1c0d6fb8a142fd41e493139c7d87ca15842231 \
bash script/ci/build-linux.sh
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gems-linux
path: pkg/*.gem
Expand All @@ -68,7 +68,7 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: '3.3'
bundler-cache: true
Expand All @@ -78,7 +78,7 @@ jobs:
- run: ruby script/notices.rb
- run: bundle exec rake 'package[native]'
- run: ruby script/test_packages.rb
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gems-macos
path: pkg/*.gem
Expand Down Expand Up @@ -106,17 +106,17 @@ jobs:
- distro: rhel10
image: registry.access.redhat.com/ubi10/ruby-33@sha256:dc4164449ad3e24ca94b412b258c36541300ef5cb67090b4173191f5cf67ae1d
- distro: ubuntu24
image: ubuntu:24.04@sha256:68ee22004a9109b44973313b02ff7b1de250f1de0f5ecb628d73f579aaff33ac
image: ubuntu:24.04@sha256:73b999393d07f2bf65a40373778a44dc9a6d54ad7718d29247d8ff9413c4d6a8
- distro: ubuntu26
image: ubuntu:26.04@sha256:c098726dd9b9733f3e885f8de0ef375206a311b0a317eadc40d347b1115fb944
image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
- distro: arch
# Rolling by design: catch new glibc/Ruby releases on the weekly run.
image: archlinux:base
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: gems-linux
path: pkg
Expand All @@ -142,10 +142,10 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: gems-linux
path: pkg
Expand All @@ -165,10 +165,10 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: gems-macos
path: pkg
Expand All @@ -183,7 +183,7 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: '3.3'
bundler-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Set up Rust analysis
if: matrix.language == 'rust'
run: rustup toolchain install 1.94.0 --profile minimal && rustup default 1.94.0
- uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
- uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
build-mode: none
- uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
- uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: /language:${{ matrix.language }}
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
- uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0
with:
ruby-version: '3.3'
rubygems: '4.0.24'
Expand All @@ -42,7 +42,7 @@ jobs:
--jq '.workflow_runs[0]' > /tmp/forme-ci-run.json
ruby script/ci/verify-run.rb /tmp/forme-ci-run.json
echo "run_id=$(ruby -rjson -e 'print JSON.parse(File.read(ARGV[0])).fetch("id")' /tmp/forme-ci-run.json)" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
github-token: ${{ github.token }}
run-id: ${{ steps.ci.outputs.run_id }}
Expand All @@ -51,7 +51,7 @@ jobs:
merge-multiple: true
- run: ruby script/ci/verify-release.rb
- name: Attest tested packages
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
with:
subject-path: pkg/*.gem
- name: Publish the GitHub release, or match an existing one
Expand All @@ -66,12 +66,23 @@ jobs:
gh release create "$GITHUB_REF_NAME" pkg/*.gem pkg/SHA256SUMS --verify-tag \
--title "$GITHUB_REF_NAME" --notes "See the [changelog](https://github.com/$GITHUB_REPOSITORY/blob/master/CHANGELOG.md)."
fi
# sigstore-cli and rubygems-await come from gemfiles/release.gemfile.lock
# (exact versions and checksums), installed before any credential is set.
- name: Install the locked release tools
env:
BUNDLE_GEMFILE: gemfiles/release.gemfile
BUNDLE_FROZEN: 'true'
run: bundle install
- uses: rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a # v2.1.0
- name: Sign and publish the tested packages
env:
BUNDLE_GEMFILE: gemfiles/release.gemfile
run: |
for gem_file in pkg/*.gem; do
gem exec sigstore-cli:0.2.3 sign "$gem_file" --bundle "$gem_file.sigstore.json"
bundle exec sigstore-cli sign "$gem_file" --bundle "$gem_file.sigstore.json"
gem push "$gem_file" --attestation "$gem_file.sigstore.json"
done
- name: Wait for the release to propagate
run: gem exec rubygems-await:0.5.4 pkg/*.gem
env:
BUNDLE_GEMFILE: gemfiles/release.gemfile
run: bundle exec rubygems-await pkg/*.gem
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## Unreleased

### Security

- The Release workflow runs `sigstore-cli` 0.2.3 and `rubygems-await` 0.5.4
from `gemfiles/release.gemfile.lock` (exact versions with SHA-256
checksums, installed frozen before the RubyGems credentials are set)
instead of `gem exec`, which resolved their dependencies afresh in a job
holding `id-token: write` (EBA-20638).
- Pin `ruby/setup-ruby` v1.342.0, `actions/upload-artifact` v7.0.2,
`actions/download-artifact` v8.0.2, `github/codeql-action` v4.39.3 and
`actions/attest-build-provenance` v3.2.0 (EBA-20638), and the Ubuntu 24.04
and 26.04 CI images at their 2026-11-16 digests (EBA-20660). Runtime code and dependencies are
unchanged.

## 0.2.1 (2026-11-10)

### Security
Expand Down
10 changes: 10 additions & 0 deletions gemfiles/release.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# The tools the Release workflow runs to sign and wait for the published
# packages, locked with checksums (release.gemfile.lock) instead of
# `gem exec <name>:<version>`, which resolves their dependencies afresh in a
# job that holds id-token: write. Not part of the gem.
source "https://rubygems.org"

gem "sigstore-cli", "0.2.3"
gem "rubygems-await", "0.5.4"
59 changes: 59 additions & 0 deletions gemfiles/release.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
GEM
remote: https://rubygems.org/
specs:
logger (1.7.0)
net-http (0.10.0)
net-protocol (>= 0.3.0)
uri (>= 0.11.1)
net-protocol (0.4.0)
timeout
protobug (0.1.0)
protobug_googleapis_field_behavior_protos (0.1.0)
protobug (= 0.1.0)
protobug_well_known_protos (= 0.1.0)
protobug_sigstore_protos (0.1.0)
protobug (= 0.1.0)
protobug_googleapis_field_behavior_protos (= 0.1.0)
protobug_well_known_protos (= 0.1.0)
protobug_well_known_protos (0.1.0)
protobug (= 0.1.0)
rubygems-await (0.5.4)
bundler (>= 2.2)
sigstore (0.2.3)
logger
net-http
protobug_sigstore_protos (~> 0.1.0)
uri
sigstore-cli (0.2.3)
sigstore (= 0.2.3)
thor
thor (1.5.0)
timeout (0.6.1)
uri (1.1.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
rubygems-await (= 0.5.4)
sigstore-cli (= 0.2.3)

CHECKSUMS
bundler (4.0.23) sha256=407ba8a1d928f412847f819aa5f8b6aef7c59fb51feb517112af8a165487287b
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
net-http (0.10.0) sha256=1a2ff6e37a05724973c43f2bf7bf105f59c36a4cd0a7e9b1c021a0a566987c27
net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
protobug (0.1.0) sha256=5bf1356cedf99dcf311890743b78f5e602f62ca703e574764337f1996b746bf2
protobug_googleapis_field_behavior_protos (0.1.0) sha256=db48ef6a5913b2355b4a6931ab400a9e3e995fb48499977a3ad0be6365f9e265
protobug_sigstore_protos (0.1.0) sha256=4ad1eebaf6454131b6f432dda50ad0e513773613474b92470847614a5acacce1
protobug_well_known_protos (0.1.0) sha256=356757f562453bb34a28f12e8e9fa357346cca35a6807a549837c3fe256bb5b3
rubygems-await (0.5.4) sha256=b9f37de928c19226e2143ac539e41a33aa1d0b9b6d1628ad986e1c328a036b7f
sigstore (0.2.3) sha256=fe60a7b15254eaec765388fc7ad54ee6298f48a36bcea06173e91ecd7ce52c7f
sigstore-cli (0.2.3) sha256=0d0449461797460a4c31de6f57e9f0bf2df6b0e9faec2e88e52268ec7a1a39c9
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb

BUNDLED WITH
4.0.23
Loading