{
  "schemaVersion": "ebb.rule.v1",
  "id": "serverless.google-cloud-functions.nodejs12",
  "ecosystem": "serverless",
  "purl": "pkg:generic/google-cloud-functions-runtime/nodejs12",
  "affectedVersions": "vers:semver/*",
  "event": "end-of-life",
  "severity": "high",
  "title": "Google Cloud Functions Node.js 12 runtime is end-of-life",
  "summary": "The Cloud Run functions runtime support schedule lists Node.js 12 (runtime ID nodejs12) as deprecated on 2024-01-30 and decommissioned on 2025-01-30. Google no longer provides maintenance for that runtime.",
  "replacement": "nodejs24 or nodejs26",
  "deadline": "2025-01-30",
  "sources": [
    {
      "title": "Cloud Run functions runtime support",
      "url": "https://cloud.google.com/functions/docs/runtime-support",
      "accessedAt": "2026-10-30"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-30",
    "reviewedAt": "2026-10-30",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep every Terraform google_cloudfunctions*_function runtime on one Google Cloud Functions runtime ID that Google still supports.",
      "Raising the managed runtime can require language and dependency changes; confirm handlers run on the replacement before deploying."
    ],
    "steps": [
      {
        "id": "raise-gcloud-functions-runtime",
        "title": "Raise the Google Cloud Functions runtime",
        "instructions": "Change the reported runtime to a supported Google Cloud Functions runtime ID (see the replacement).",
        "targets": "declaration"
      },
      {
        "id": "align-gcloud-functions-runtime-surfaces",
        "title": "Align other runtime surfaces",
        "instructions": "Update every other Terraform google_cloudfunctions*_function runtime and deploy configuration that still pins the old runtime ID.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "terraform init -backend=false && terraform validate",
        "purpose": "Initialize without touching remote state and check that the configuration is valid."
      },
      {
        "command": "terraform plan",
        "purpose": "Review the plan and confirm the runtime change is the intended one."
      }
    ]
  }
}
