{
  "schemaVersion": "ebb.rule.v1",
  "id": "github-actions.setup-node.node20",
  "ecosystem": "github-actions",
  "purl": "pkg:github/actions/setup-node",
  "affectedVersions": "vers:semver/<5.0.0",
  "event": "end-of-support",
  "severity": "high",
  "title": "Unsupported actions/setup-node runtime",
  "summary": "This release predates the action's Node.js 24 runtime. GitHub no longer provides Node.js 20 on Actions runners.",
  "replacement": "actions/setup-node@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/setup-node v5 runtime guidance",
      "url": "https://github.com/actions/setup-node#breaking-changes-in-v5",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-13",
    "reviewedAt": "2026-10-14",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Preserve the selected Node.js version, registry authentication, and dependency-cache behavior."
    ],
    "steps": [
      {
        "id": "upgrade-action-ref",
        "title": "Upgrade setup-node",
        "instructions": "Change the uses reference to actions/setup-node@v5 or a later supported major.",
        "targets": "declaration"
      },
      {
        "id": "review-action-inputs",
        "title": "Review runtime and cache inputs",
        "instructions": "Confirm node-version, registry-url, cache, and cache-dependency-path remain valid for the target release.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "git diff --check",
        "purpose": "Validate the edited workflow diff."
      }
    ]
  }
}
