{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.ruby.eol-3.3-and-older",
  "ecosystem": "container",
  "purl": "pkg:docker/library/ruby",
  "affectedVersions": "vers:semver/>=3.3.0|<3.4.0",
  "event": "scheduled-end-of-life",
  "severity": "low",
  "title": "Ruby image release line 3.3 reaches end-of-life on 2027-03-31",
  "summary": "Ruby 3.3 is in security maintenance and is scheduled to stop receiving fixes from the Ruby core team on 2027-03-31.",
  "replacement": "A ruby image on a later supported release line",
  "deadline": "2027-03-31",
  "sources": [
    {
      "title": "Ruby maintenance branches",
      "url": "https://www.ruby-lang.org/en/downloads/branches/",
      "accessedAt": "2026-10-29"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-29",
    "reviewedAt": "2026-10-29",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the base image, .ruby-version, Gemfile ruby requirement, and CI matrices on one supported Ruby branch.",
      "Confirm gems with native extensions build on the target Ruby, and rebuild bundled gems inside the image."
    ],
    "steps": [
      {
        "id": "update-image-declaration",
        "title": "Update the base image",
        "instructions": "Change the reported FROM line or Compose image to a tag on a supported release line, and pin it to a digest if your policy requires.",
        "targets": "declaration"
      },
      {
        "id": "align-image-surfaces",
        "title": "Align other image references",
        "instructions": "Update other Dockerfiles, Compose files, CI service containers, and deployment manifests that use the same image so they agree.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "docker build .",
        "purpose": "Build the image on the new base."
      },
      {
        "command": "docker run --rm IMAGE ruby --version",
        "purpose": "Confirm the container runs the intended Ruby version."
      }
    ]
  }
}
