Skip to content

build: bring the dependencies, Gradle plugins and GitHub Actions up to date, and harden the workflows #2103

Open

Description

@lagergren

This lists every dependency, Gradle plugin and GitHub Action of LSP4IJ that is not on its latest stable version, and what an upgrade means. It was checked on 2026-11-22 against main (1b44654). The IntelliJ Platform versions and the test matrix are out of scope: they follow a separate policy. Once these are current, Dependabot (#2100) can keep them so.

Security

Libraries in the plugin zip. The 0.30.1 zip ships these jars:

  • lsp4j 1.0.0 (lsp4j, jsonrpc, debug, jsonrpc.debug)
  • flexmark 0.64.8 (core, ext-tables, ext-autolink, ext-gfm-strikethrough and 11 flexmark-util-* jars)
  • org.nibor.autolink:autolink 0.6.0
  • org.jetbrains:annotations 24.0.1

Nothing is shaded into lsp4ij-<version>.jar. None of these versions has an advisory in the GitHub Advisory Database or OSV, and an NVD keyword search for lsp4j, flexmark and autolink returns no CVE.

Libraries the IDE provides. LSP4IJ doesn't ship these, and shouldn't bundle them itself:

  • Gson is excluded from lsp4j. The IDE provides 2.10.1 in 2024.2 and 2.14.0 in 2026.3. GHSA-4jrv-ppp4-jm57 affects only versions below 2.8.9.
  • The Kotlin stdlib comes from the IDE (kotlin.stdlib.default.dependency=false).
  • slf4j-api is excluded.

Kotlin Gradle plugin 2.3.21.

  • GHSA-r937-wjx7-w2jp / CVE-2026-53914, "Unsafe Deserialization in Kotlin Build Cache", medium (CVSS 6.7, AV:L/AC:H/PR:H), covers < 2.4.20-Beta1, so 2.3.21 is in its range.
  • Its fix, JetBrains/kotlin@bf51df6, changes only the KAPT incremental cache. LSP4IJ doesn't apply kapt, so it isn't affected.
  • The fix exists only in Kotlin 2.4.20 and later, which LSP4IJ can't use yet (see Kotlin below).

Gradle 9.9.2 is the fixed version of the four advisories that Gradle published on 2026-11-19 (GHSA-99wf-vhq9-wm2x, GHSA-7f7r-77ff-fr6f, GHSA-4mf6-7pm2-6wm8, GHSA-35pj-rg5r-8rpv), and has the fixes of the earlier 9.8.1 and 9.9.1 ones. No advisory is open against it.

GitHub Actions.

Supply chain (not an advisory). GitHub's secure use guide says to pin actions to a full commit SHA, and to give GITHUB_TOKEN the least permissions.

  • Tag pins. Two third-party actions are pinned by a tag, which can be moved:
    • gradle/actions/setup-gradle@v5 and gradle/actions/wrapper-validation@v5;
    • codecov/[email protected].
  • Where setup-gradle runs. It also runs in release.yml and nightly.yml, in jobs with contents: write and pull-requests: write. It adds init scripts to the Gradle user home, which run in the publishPlugin step, which has PUBLISH_TOKEN in its environment.
  • Write token. Five workflows have no permissions: block: IJ.yml, buildZip.yml, IJ-latest.yml, changelog.yml and conventionalCheck.yml. On a push to main they get a write token: run 45044460768 of buildZip.yml shows Contents, Actions, PullRequests, Packages and more as write. IJ.yml and buildZip.yml run setup-gradle with it.

Suggested hardening:

  • Pin every third-party action by SHA, with its version in a comment.
  • Add permissions: contents: read at the top of each workflow without a block. conventionalCheck.yml may also need pull-requests: read.

Libraries, Gradle plugins and the wrapper

Item Current Latest stable (date) Notes Security
IntelliJ Platform Gradle Plugin 2.20.0 2.20.1 (2026-11-09) Bug fixes. One public API change: intellijPlatformTesting parameters now return a plain TaskDependency. The plugin itself warns that 2.20.0 is outdated. Tried locally: buildPlugin builds, the configuration cache is stored, and there are no new warnings. The Task.getAnt() deprecation of instrumentCode (JetBrains/intellij-platform-gradle-plugin#2294) is still open, and doesn't affect LSP4IJ, as main sets instrumentCode = false. none found
Kotlin (org.jetbrains.kotlin.jvm) 2.3.21 2.4.21 (2026-10-08); 2.5.0-RC is a pre-release Blocked by pluginSinceBuild=242. Kotlin 2.4 dropped language version 1.9 (compatibility guide); its oldest API version is 2.0 (FIRST_API_SUPPORTED = KOTLIN_2_0, source). LSP4IJ needs API 1.9, as 2024.2 bundles stdlib 1.9.24 (table). So Kotlin 2.4 needs pluginSinceBuild 243 or higher (2024.3 bundles 2.0.21), and Kotlin 2.5, whose oldest API version is 2.2 (source), needs 253 or higher. 2.3.21 is the last 2.3 release, and it already warns "Language version 1.9 is deprecated". LSP4IJ has 7 Kotlin files. in the range of GHSA-r937-wjx7-w2jp, not affected (see Security)
Kover 0.9.11 0.9.11 (2026-09-29) Latest. It causes the only Gradle deprecation that a 9.9.2 build reports, Configuration.setVisible. The fix, Kotlin/kotlinx-kover#838, was merged on 2026-10-22 but isn't released. #2068 waits for it. none found
JUnit Jupiter and Vintage (junit-jupiter) 5.10.3 declared, 5.11.0 resolved 5.14.4 (2026-04-26) on 5.x; 6.1.3 (2026-08-07) junit-platform-launcher:1.11.0 is set in build.gradle.kts, outside the catalog, and its BOM moves every JUnit artifact to 5.11.0, so the catalog's 5.10.3 isn't what runs. One junit-bom in the catalog fixes that. JUnit 6 (release notes) has a Java 17 baseline, which is fine, and one version for Platform, Jupiter and Vintage. Its Vintage engine is deprecated, and LSP4IJ's platform tests (JUnit 3 and 4 style) run on it. 6.1.3 was tried locally on 2024.2 with 3 test classes (37 tests, 0 failures), not with the full suite or the other CI legs. 5.14.4 is the lower-risk step. none found
junit-platform-launcher 1.11.0 1.14.4 (2026-04-26) on 5.x; 6.1.3 Should come from the same BOM. HangingTestWatchdog uses only TestExecutionListener, TestIdentifier and TestPlan, which JUnit 6 keeps. none found
junit:junit 4.13.2 4.13.2 Latest. GHSA-269g-pwp5-87pp affects only versions below 4.13.1
lsp4j (4 modules) 1.0.0 1.0.0 (2026-02-09) Latest. Shipped in the zip. none found
flexmark (4 modules and utils) 0.64.8 0.64.8 (2023-05-23) Latest, but there has been no release since May 2023. Shipped in the zip. Its open issues #676 (XXE) and #505 (jsoup) are in flexmark-docx-converter and the html2md converter, which LSP4IJ doesn't use. none found
org.nibor.autolink:autolink (from flexmark-ext-autolink) 0.6.0 0.12.0 (2025-06-04) Transitive, shipped in the zip. Don't override it alone: flexmark-ext-autolink is built against 0.6.0. none found
org.jetbrains:annotations (from flexmark) 24.0.1 26.1.0 (2026-02-18) Transitive, shipped in the zip although the IDE has its own. Annotations only. none found
Gradle Changelog Plugin 2.5.0 2.5.0 Latest. none found
test-logger (com.adarshr.test-logger) 4.0.0 4.0.0 (2023-10-11) Latest; no release in 3 years. No Gradle 9.9.2 deprecation seen. none found
foojay-resolver-convention 1.0.0 1.0.0 Latest. none found
JaCoCo (Gradle's default) 0.8.15 0.8.16 (2026-10-26) Follows Gradle (toolVersion isn't set). 0.8.16 adds Java 27; the toolchain goes up to Java 25, which 0.8.15 supports. No action needed. none found
Gradle wrapper 9.9.2 9.9.2 (2026-11-19) Latest. Optional hardening: set distributionSha256Sum through the wrapper task. fixed version (see Security)

GitHub Actions

Action Used in Current Pinned by Latest (date) Notes
actions/checkout all v7 (v7.0.1) major tag v7.0.1 (2026-07-20) Latest. Node 24.
actions/setup-java the build jobs v6 (v6.3.0) major tag v6.3.0 (2026-11-14) Latest. Node 24.
actions/upload-artifact ci, IJ, buildZip, IJ-latest v7 (v7.0.2) major tag v7.0.2 (2026-10-07) Latest. Node 24.
actions/cache nightly v6 (v6.1.0) major tag v6.1.0 (2026-06-26) Latest. Node 24.
gradle/actions/setup-gradle, gradle/actions/wrapper-validation the build jobs, buildZip v5 (v5.0.2, 2026-02-23) major tag (third party) v6.4.1 (2026-10-28) v5 already runs on Node 24. In v6, the caching moved to a closed-source component under Gradle's Terms of Use (blog, v6.0.0). It stays free for public repositories, but upgrading means accepting those terms. The alternative is cache-provider: basic (MIT, since v6.1.0), without cache cleanup or deduplication. The blog post says nothing about how long v5 gets fixes. Pin by SHA either way.
codecov/codecov-action ci v7.1.1 exact tag (third party) v7.1.1 (2026-09-17) Latest. Pin by SHA.
amannn/action-semantic-pull-request conventionalCheck v3.1.0 (2021-01-11) SHA d2ab30dc v6.1.3 (2026-11-20) v3.1.0 declares node12, so every run warns that it's "being forced to run on Node.js 24" (run 45044132166). Node 20 is gone from the runners (changelog). The breaking changes of v4 to v6 are about Node versions and the format of inputs, and LSP4IJ sets no input.
redhat-developer/simple-conventional-changelog release, changelog 0.0.13 SHA d1060338 0.0.13 (2026-11-18) Latest. Node 24.
jlumbroso/free-disk-space IJ v1.3.1 (its comment says "main", which is wrong) SHA 54081f13 v2.0.0 (2026-09-17) v2.0.0 renames tool-cache to preinstalled-runtimes; the old name still works, with a warning, until v3. It also stops removing swap by default (swap-storage: false), so the job gets less space back unless swap-storage: true is set.
itests.yml.disabled not run checkout v2/v4, setup-java v4, upload-artifact v4 major tags see above GitHub doesn't run it. Update it if it's turned on again.

"Latest IJ" (IJ-latest.yml) is disabled in the settings of the repository, so it doesn't run at all; its actions are listed anyway.

SHAs for pinning:

  • gradle/actions: v5.0.2 = 0723195856401067f7a2779048b490ace7a47d7c; v6.4.1 = 8da46b539cd8fe6ab27ca75128919a18d757604c
  • codecov/codecov-action v7.1.1 = 303a32d7a59b442fa8d48b6a1cc6825c09c847a5
  • amannn/action-semantic-pull-request v6.1.3 = c5e23b7e584519ee15caa684cf60d056aa9f035f
  • jlumbroso/free-disk-space v2.0.0 = ceedf095f4ec1a097402bc6bd80831f2e1a6fde6
  • GitHub's own actions, if they should be pinned too: checkout v7.0.1 = 3d3c42e5aac5ba805825da76410c181273ba90b1, setup-java v6.3.0 = d1374f8ac74474200d16ef8ecee22c7ae7a51880, upload-artifact v7.0.2 = cf430e030ddbb5b0abf93d22962f4752f3646cd9, cache v6.1.0 = 55cc8345863c7cc4c66a329aec7e433d2d1c52a9

Suggested order

  1. The hardening of the workflows and the updates of the actions, in one PR:

    • add permissions: blocks;
    • pin gradle/actions (v5.0.2 for now) and codecov by SHA;
    • move amannn/action-semantic-pull-request to v6.1.3;
    • move free-disk-space to v2.0.0: rename tool-cache, decide on swap-storage, and fix the comment.

    Low risk: the PR's own checks run conventionalCheck, IJ, buildZip and ci.

  2. The IntelliJ Platform Gradle Plugin 2.20.1, alone. Low risk; tried locally.

  3. JUnit through one junit-bom, alone: 5.14.4, or 6.1.3 if the Vintage deprecation is acceptable. It needs the full CI matrix.

  4. gradle/actions v6, once it's decided whether to accept Gradle's Terms of Use or to use cache-provider: basic. Compare the CI times.

  5. Kover 0.9.12, once it's released (build: upgrade Kover once a release fixes the deprecation of Configuration.setVisible #2068).

  6. Kotlin 2.4 or later, with a higher pluginSinceBuild. That's a decision of the IntelliJ Platform policy.

No action is needed now for lsp4j, flexmark, junit:junit, the Changelog plugin, test-logger, foojay, JaCoCo or the Gradle wrapper.

How this was checked

  • Read gradle/libs.versions.toml, gradle.properties, build.gradle.kts, settings.gradle.kts, the wrapper properties and .github/workflows/* on main (1b44654).
  • Took the latest versions from maven-metadata.xml on Maven Central and the Gradle Plugin Portal, from services.gradle.org/versions, and from the GitHub releases of each plugin and action.
  • Ran ./gradlew dependencies on a copy of main, and listed the jars in the lsp4ij-0.30.1.zip release asset and the IDE jars of 2024.2 and 2026.3.
  • Checked advisories in the GitHub Advisory Database API for every library, plugin and action, in OSV at the exact Maven versions (and per package for actions), with an NVD keyword search, and in the security advisories of gradle/gradle, gradle/actions and the third-party actions.
  • Read each action's runs.using from its action.yml at the pinned ref, and the annotations and GITHUB_TOKEN permissions of the latest runs.
  • Local trials on a copy of main: check --dry-run --warning-mode all and buildPlugin --warning-mode all (the only Gradle deprecation is Kover's setVisible, and Kotlin warns about language version 1.9); buildPlugin with the IntelliJ Platform Gradle Plugin 2.20.1; three test classes with JUnit 6.1.3 on 2024.2.

Activity

  1. added this to the Backlog milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions