Automate JDK version updates via versions.json single source of truth - #153
Merged
Conversation
jmjaffe37
reviewed
Jul 23, 2026
jmjaffe37
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces a single source of truth for JDK versions and automates keeping it up to date, replacing the hardcoded version matrices that previously had to be edited by hand in multiple places.
Changes
versions.json— new single source of truth for the expected JDK patch versions (temurin 8 + msopenjdk 11/17/21/25)..github/workflows/check-versions.ymland.github/workflows/validate-published-images.yml— refactored to build their matrices fromversions.jsonvia apreparejob (usingjq+fromJson) instead of duplicating hardcoded{ major, expected }lists. This removes 3 copies of the version list.scripts/update-versions.sh— new script that discovers the latest patch versions from the authoritative upstream sources:The majors to track are driven by the keys in
versions.json..github/workflows/update-jdk-versions.yml— new scheduled workflow that runs the script and opens/updates a PR when a newer version is found. Runs Tuesdays and Thursdays at midnight PT so version-bump PRs can be merged before the automated Monday/Wednesday/Friday image builds. Manualworkflow_dispatchruns support amodeinput:dry-run(default) — prints the detected diff to the job summary, no PRcreate-pull-request— opens/updates the PRNotes
GITHUB_TOKEN, so the validation workflows won't auto-trigger on them and may need a manual re-run.