From f6637892a591bfbcdcbddd2675ecb49890d59da2 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 18 Nov 2026 22:10:32 -0500 Subject: [PATCH] Upgrade runtime to Ruby 4.0.10 Ruby 4.0.10 fixes memory-safety bugs in Regexp and in String case conversion. Move `.ruby-version`, `Dockerfile` and `Dockerfile-export` to it, and bump `ruby/setup-ruby` to v1.342.0, the first release that installs 4.0.10. ref: https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/ --- .github/workflows/ci.yml | 10 +++++----- .ruby-version | 2 +- Dockerfile | 2 +- Dockerfile-export | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf505d2..70cdb6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: persist-credentials: false - name: Set up Ruby - uses: ruby/setup-ruby@26e5b7d197ebf60545ee9667bcbace0be11ccaec # v1.334.0 + uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0 with: ruby-version: .ruby-version bundler-cache: true @@ -40,7 +40,7 @@ jobs: persist-credentials: false - name: Set up Ruby - uses: ruby/setup-ruby@26e5b7d197ebf60545ee9667bcbace0be11ccaec # v1.334.0 + uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0 with: ruby-version: .ruby-version bundler-cache: true @@ -63,7 +63,7 @@ jobs: persist-credentials: false - name: Set up Ruby - uses: ruby/setup-ruby@26e5b7d197ebf60545ee9667bcbace0be11ccaec # v1.334.0 + uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0 with: ruby-version: .ruby-version bundler-cache: true @@ -110,7 +110,7 @@ jobs: persist-credentials: false - name: Set up Ruby - uses: ruby/setup-ruby@26e5b7d197ebf60545ee9667bcbace0be11ccaec # v1.334.0 + uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0 env: REDIS_URL: redis://localhost:6379/0 with: @@ -143,7 +143,7 @@ jobs: persist-credentials: false - name: Set up Ruby - uses: ruby/setup-ruby@26e5b7d197ebf60545ee9667bcbace0be11ccaec # v1.334.0 + uses: ruby/setup-ruby@f9c4492e86def3e644ab32a0ef185eda5b0c20d0 # v1.342.0 env: REDIS_URL: redis://localhost:6379/0 with: diff --git a/.ruby-version b/.ruby-version index 7919852..2d2d681 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -4.0.9 +4.0.10 diff --git a/Dockerfile b/Dockerfile index 9a1798c..be20f07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax = docker/dockerfile:1 # Make sure it matches the Ruby version in .ruby-version and Gemfile -ARG RUBY_VERSION=4.0.9 +ARG RUBY_VERSION=4.0.10 FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base # Rails app lives here diff --git a/Dockerfile-export b/Dockerfile-export index 528b24c..fa84417 100644 --- a/Dockerfile-export +++ b/Dockerfile-export @@ -1,7 +1,7 @@ # syntax = docker/dockerfile:1 # Make sure it matches the Ruby version in .ruby-version and Gemfile -ARG RUBY_VERSION=4.0.9 +ARG RUBY_VERSION=4.0.10 FROM ruby:$RUBY_VERSION-slim as base # Install the tools we need