Skip to content

Commit

Permalink
Force newer version of Eclipse core transitive dependency (resolves C…
Browse files Browse the repository at this point in the history
…VE-2023-4218) (opensearch-project#3737)

### Description

The Spotless Gradle Plugin brings in a transitive dependency on Eclipse
Core Runtime 3.26.100. That version is impacted by a CVE.

This forces the newest version, currently 3.29.0. Note that newer
versions than 3.26 require JDK17+ to run spotless.

Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis authored Nov 17, 2023
1 parent ca8aafe commit b72a9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11
java-version: 17

- uses: gradle/gradle-build-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ configurations {
// for spotbugs dependency conflict
force "org.apache.commons:commons-lang3:${versions.commonslang}"

// for spotless transitive dependency CVE
force "org.eclipse.platform:org.eclipse.core.runtime:3.29.0"

// For integrationTest
force "org.apache.httpcomponents:httpclient:4.5.14"
force "org.apache.httpcomponents:httpcore:4.4.16"
Expand Down

0 comments on commit b72a9cf

Please sign in to comment.