From 6206c3168fa2de658f362cff6796fba4faadc6d1 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Tue, 13 Aug 2019 11:09:14 -0700 Subject: [PATCH 1/2] [SPARK-28713][BUILD] Bump checkstyle from 8.14 to 8.23 Fixes a vulnerability from the GitHub Security Advisory Database: _Moderate severity vulnerability that affects com.puppycrawl.tools:checkstyle_ Checkstyle prior to 8.18 loads external DTDs by default, which can potentially lead to denial of service attacks or the leaking of confidential information. https://github.com/checkstyle/checkstyle/issues/6474 Affected versions: < 8.18 Ran checkstyle locally. Closes #25432 from Fokko/SPARK-28713. Authored-by: Fokko Driesprong Signed-off-by: Dongjoon Hyun (cherry picked from commit d8dd5719b4b82ea5d2294002ada7aa4040bb2856) --- pom.xml | 2 +- project/plugins.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3005b57529ce1..46603015d8427 100644 --- a/pom.xml +++ b/pom.xml @@ -2565,7 +2565,7 @@ com.puppycrawl.tools checkstyle - 8.2 + 8.23 diff --git a/project/plugins.sbt b/project/plugins.sbt index ffbd417b0f145..cda4739954aaf 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ addSbtPlugin("com.etsy" % "sbt-checkstyle-plugin" % "3.1.1") // sbt-checkstyle-plugin uses an old version of checkstyle. Match it to Maven's. -libraryDependencies += "com.puppycrawl.tools" % "checkstyle" % "8.2" +libraryDependencies += "com.puppycrawl.tools" % "checkstyle" % "8.23" // checkstyle uses guava 23.0. libraryDependencies += "com.google.guava" % "guava" % "23.0" From 3247fd7013b951a0d7641da78fa2bc8ed241de4b Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Tue, 13 Aug 2019 20:45:41 +0200 Subject: [PATCH 2/2] Bump maven-checkstyle-plugin from 2.17 to 3.0.0 --- pom.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 46603015d8427..789816eb25e0a 100644 --- a/pom.xml +++ b/pom.xml @@ -2550,12 +2550,17 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.17 + 3.0.0 false true - ${basedir}/src/main/java,${basedir}/src/main/scala - ${basedir}/src/test/java + + ${basedir}/src/main/java + ${basedir}/src/main/scala + + + ${basedir}/src/test/java + dev/checkstyle.xml ${basedir}/target/checkstyle-output.xml ${project.build.sourceEncoding}