Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force newer version of transitive (spotless) eclipse dependency #175

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Nov 17, 2023

Description

Spotless brings in a transitive dependency on a CVE-impacted Eclipse Core dependency. This forces the newest version.

The non-impacted Eclipse dependency requires JDK17+ so I've also updated CI to use JDK17 for the spotless check and remove the spotless check from the subsequent build (allowing it to run on JDK11).

Issues Resolved

Resolves #160

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@minalsha minalsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amitgalitz
Copy link
Member

looks like spotless check failed now:
FAILURE: Build failed with an exception.

@dbwiddis
Copy link
Member Author

dbwiddis commented Nov 17, 2023

looks like spotless check failed now: FAILURE: Build failed with an exception.

Yeah, apparently the newer Eclipse core dependency requires JDK17+ for running spotless:

You are running Spotless on JVM 11, which limits you to eclipse jdt formatter 4.26.

@owaiskazi19 owaiskazi19 merged commit 2dcfc9c into opensearch-project:main Nov 17, 2023
19 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 17, 2023
* Force newer version of transitive (spotless) eclipse dependency

Signed-off-by: Daniel Widdis <[email protected]>

* Non-impacted Eclipse Core dependency requires JDK17+ for spotless

Signed-off-by: Daniel Widdis <[email protected]>

* Don't do spotless check during build as its already done

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 2dcfc9c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis
Copy link
Member Author

Interestingly, I submitted a similar PR on security repo that says the current version is still vulnerable: https://github.com/opensearch-project/security/pull/3737/checks?check_run_id=18799318680

In which case there's nothing we can do until a newer version comes out...

@dbwiddis dbwiddis deleted the fix-cve branch November 17, 2023 22:33
@dbwiddis
Copy link
Member Author

But per https://www.cve.org/CVERecord?id=CVE-2023-4218 "before" means 3.29.0 should be good. We'll see if the issue gets regenerated.

Vendor Eclipse Foundation
Product org.eclipse.core.runtime
Versions affected from 0 before 3.29.0

dbwiddis pushed a commit that referenced this pull request Nov 17, 2023
…ependency (#176)

Force newer version of transitive (spotless) eclipse dependency (#175)

* Force newer version of transitive (spotless) eclipse dependency



* Non-impacted Eclipse Core dependency requires JDK17+ for spotless



* Don't do spotless check during build as its already done



---------


(cherry picked from commit 2dcfc9c)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

org.eclipse.core.runtime-3.26.100.jar: 1 vulnerabilities (highest severity is: 5.0)
6 participants