Skip to content

fix: dynamically fetch latest GitHub Actions runner version#1

Closed
matthiasgubler wants to merge 1 commit intomainfrom
fix/dynamic-runner-version
Closed

fix: dynamically fetch latest GitHub Actions runner version#1
matthiasgubler wants to merge 1 commit intomainfrom
fix/dynamic-runner-version

Conversation

@matthiasgubler
Copy link
Copy Markdown
Member

Summary

  • Replace hardcoded GitHub Actions runner v2.313.0 (from Feb 2024) with dynamic version fetching from the GitHub API
  • The EC2 user data script now queries the GitHub releases API at startup to get the current runner version
  • This prevents CI failures when GitHub deprecates old runner versions

Problem

The hardcoded runner v2.313.0 was deprecated by GitHub around Feb 28, 2026. EC2 instances boot successfully but fail to register as self-hosted runners because GitHub rejects the outdated version. This caused ~90% of Recording CI runs to fail with:

A timeout of 5 minutes is exceeded. Your AWS EC2 instance was not able to register itself in GitHub as a new self-hosted runner.

Changes

  • src/aws.js: Replaced static version download URL with dynamic version lookup
  • dist/index.js: Rebuilt bundle

After merge

  1. Tag a new release (e.g. v1.1.0) or update the v1.0.0 tag
  2. Update mmhmm-service/.github/workflows/recording-ci.yml to reference the new tag
  3. Verify Recording CI passes

The runner version was hardcoded to v2.313.0 (Feb 2024), which has been
deprecated by GitHub. EC2 instances boot but fail to register as
self-hosted runners because GitHub rejects the outdated version.

Instead of hardcoding, the user data script now fetches the latest
runner version from the GitHub API at instance startup time. This
prevents future breakages when runner versions are deprecated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant