Repository navigation
Fix JetBrains Runtime hotfix version selection - #1321
Open
brunoborges with Copilot wants to merge 2 commits into
Open
brunoborges with Copilot wants to merge 2 commits into
brunoborges with Copilot wants to merge 2 commits into
Conversation
4 of 5 tasks
Copilot
AI
changed the title
[WIP] Fix vulnerable JBR 25 version selection in setup-java
Fix JetBrains Runtime hotfix version selection
Nov 11, 2026
taylorcreech88-droid
approved these changes
Nov 11, 2026
taylorcreech88-droid
approved these changes
Nov 11, 2026
brunoborges
approved these changes
Nov 13, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the JetBrains Runtime hotfix-selection update.
No open issues 🎉
What changed in this PR
Fixes JetBrains Runtime hotfix selection so requests such as java-version: '25' prefer patched releases like 25.0.4.1+635.79, addressing issue #1317.
Changes:
- Normalizes hotfix versions while preserving archive and checksum URLs.
- Prioritizes Java patch fields before JBR build numbers for downloads and cache lookup.
- Adds coverage for patch-only and exact-build requests, early-access separation, and cached hotfix selection.
| File | Description |
|---|---|
| src/distributions/jetbrains/installer.ts | Adds hotfix normalization, matching, and version ordering. |
| dist/setup/282.index.js | Updates the bundled action with the installer changes. |
| tests/distributors/jetbrains-installer.test.ts | Adds hotfix selection, comparison, and cache regression tests. |
Review effort: Balanced
This branch has not been deployed
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.
Description:
Four-component JBR versions were rejected as invalid SemVer, causing
java-version: '25'to select vulnerable25.0.4+508.27instead of patched25.0.4.1+635.79.Related issue:
Linked automatically.
Check list:
npm run checklocally (format, lint, build, test) and all checks pass.