Skip to content

Commit 76ab950

Browse files
committed
deps: exclude sshd-sftp
The reason for this pr is that the jgit version that is being used brings in sshd-common (which is brought in by sshd-sftp) which has a critical security vulnerability attached to it meaning GitHub complains. You can see the advisory in GHSA-fhw8-8j55-vwgq. I wasn't sure if I should pin or exclude, but I didn't see anything that would use this and saw other exclusions, so I figured this was fine. Note that another way to avoid this would be to bump jgit to the 6.x, but I understand you don't want to do that as they drop support for Java 8.
1 parent efd9a67 commit 76ab950

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

project/Dependencies.scala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ object Dependencies {
99
ExclusionRule("org.tukaani", "xz"),
1010
ExclusionRule("junit", "junit")
1111
)
12-
val jgit = "org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.1.202206130422-r"
13-
val jgitSshApache = "org.eclipse.jgit" % "org.eclipse.jgit.ssh.apache" % "5.13.1.202206130422-r"
12+
// We excluded sshd-sftp to avoid https://github.com/advisories/GHSA-fhw8-8j55-vwgq
13+
// Either that or we need to bump to jgit 6.x
14+
val jgit = "org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.1.202206130422-r" excludeAll (
15+
ExclusionRule("org.apache.sshd", "sshd-sftp")
16+
)
17+
val jgitSshApache = "org.eclipse.jgit" % "org.eclipse.jgit.ssh.apache" % "5.13.1.202206130422-r" excludeAll (
18+
ExclusionRule("org.apache.sshd", "sshd-sftp")
19+
)
1420
val scopt = "com.github.scopt" %% "scopt" % "4.1.0"
1521
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.17.0"
1622
val scalatest = "org.scalatest" %% "scalatest" % "3.2.14"

0 commit comments

Comments
 (0)