Schedule icon
WorkingDirectory icon
Clone icon
Script icon
Docker icon
Log icon
If icon
Loop icon
Search icon
Create icon

Audit Pinned Runtimes Against endoflife.date and File GitHub Issues

Scan pinned runtimes against endoflife.date weekly, flag end-of-life and expiring versions, and open one deduplicated GitHub issue per runtime.

Categories
BusinessInfrastructure

A pinned runtime stops receiving security fixes on a date set upstream, not in your code. This flow audits the runtimes pinned in your codebase or watchlist against live release dates from endoflife.date every week, classifies each pin as EOL, EXPIRING or SUPPORTED, and opens one deduplicated GitHub issue per runtime that needs attention.

How it works

  1. weekly schedule triggers every Monday at 07:00 with default runtime inputs.
  2. clone_repository (io.kestra.plugin.git.Clone) optionally performs a shallow checkout of a repository when repository is provided.
  3. collect_pins (io.kestra.plugin.scripts.python.Script) scans .python-version, .nvmrc, .node-version, .ruby-version, .tool-versions, go.mod, Dockerfiles, and compose files, merging discovered versions with the explicit runtimes array.
  4. audit_lifecycle queries the endoflife.date v1 API per product, matches pins to their release cycles by longest version prefix, and classifies them as EOL, EXPIRING (within warn_days), or SUPPORTED.
  5. report logs a markdown verdict table summarizing all audited pins and cycles.
  6. handle_findings loops through runtimes needing attention. In live mode, it searches issue_repository for existing issues to prevent duplicates before opening a new issue with upgrade guidance.

What you get

  • Automated discovery of runtime pins across version files, package configs, and container definitions.
  • Deterministic classification against live endoflife.date data with configurable warning windows.
  • Idempotent GitHub issue tracking that avoids opening duplicate tickets for previously triaged runtimes.
  • Full audit visibility in execution logs even when no issues are found.

Who it's for

  • Platform and DevSecOps engineers auditing fleet-wide runtime versions.
  • Engineering managers planning version upgrade roadmaps before upstream deprecations.
  • Developers wanting automated tracking of end-of-life runtimes without manual spreadsheets.

Why orchestrate this with Kestra

  • Automated weekly scheduling catches expiring runtimes as upstream calendars advance without code changes.
  • Native Docker execution isolates the Python audit environment cleanly.
  • Built-in GitHub issue search and create tasks eliminate custom API scripts and complex token handling.

Prerequisites

  • A worker with Docker access using the python:3.12-slim image.
  • Outbound HTTPS access to https://endoflife.date.

Secrets

  • GITHUB_TOKEN: A GitHub Personal Access Token with issues:write permissions on issue_repository (only required when dry_run is false).

Quick start

  1. Execute the flow with default inputs and dry_run: true to view the audit report table in the logs.
  2. Pass your public repository clone URL in repository to scan repository files automatically.
  3. Set issue_repository to your target owner/repo and configure the GITHUB_TOKEN secret.
  4. Set dry_run: false to enable automated GitHub issue filing.

How to extend

  • Route expiring runtime alerts to Slack, Microsoft Teams, or PagerDuty using Kestra notification plugins.
  • Integrate with Jira or ServiceNow to create enterprise change tickets.
  • Chain this flow with automated PR creation workflows to submit dependency version bumps.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.