{
  "schemaVersion": "ebb.rule.v1",
  "id": "github-actions.cache.node20",
  "ecosystem": "github-actions",
  "purl": "pkg:github/actions/cache",
  "affectedVersions": "vers:semver/<5.0.0",
  "event": "end-of-support",
  "severity": "high",
  "title": "Unsupported actions/cache runtime",
  "summary": "This release uses a retired JavaScript runtime or cache service. Version 5 moved the action to Node.js 24.",
  "replacement": "actions/cache@v5 or later",
  "deadline": "2026-09-23",
  "sources": [
    {
      "title": "Node 20 is no longer available in GitHub Actions",
      "url": "https://github.blog/changelog/2026-09-23-node-20-is-no-longer-available-in-github-actions/",
      "accessedAt": "2026-10-16"
    },
    {
      "title": "actions/cache runtime and service guidance",
      "url": "https://github.com/actions/cache#whats-new",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-13",
    "reviewedAt": "2026-10-14",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Preserve cache keys, restore-key ordering, paths, and cache-hit dependent control flow."
    ],
    "steps": [
      {
        "id": "upgrade-action-ref",
        "title": "Upgrade the cache action",
        "instructions": "Change the uses reference to actions/cache@v5 or a later supported major.",
        "targets": "declaration"
      },
      {
        "id": "review-cache-contract",
        "title": "Review cache behavior",
        "instructions": "Verify cache paths, keys, restore keys, and cache-hit output consumers against the target release.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "git diff --check",
        "purpose": "Validate the edited workflow diff."
      }
    ]
  }
}
