File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
sbt-plugin/src/main/scala/ch/epfl/scala Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -163,15 +163,15 @@ object AnalyzeDependencyGraph {
163
163
private def vulnerabilityMatchesArtifacts (
164
164
alert : Vulnerability ,
165
165
artifacts : Seq [String ]
166
- ): (Seq [String ], Seq [String ]) = {
167
- val alertMavenPath = s " pkg:maven/ ${alert.packageId.replace(" :" , " /" )}@ "
168
- artifacts
169
- .filter(_.startsWith(alertMavenPath))
170
- .partition { artifact =>
171
- val version = artifact.replaceAll(" .*@" , " " )
172
- versionMatchesRange(version, alert.vulnerableVersionRange)
173
- }
174
- }
166
+ ): (Seq [String ], Seq [String ]) = {
167
+ val alertMavenPath = s " pkg:maven/ ${alert.packageId.replace(" :" , " /" )}@ "
168
+ artifacts
169
+ .filter(_.startsWith(alertMavenPath))
170
+ .partition { artifact =>
171
+ val version = artifact.replaceAll(" .*@" , " " )
172
+ versionMatchesRange(version, alert.vulnerableVersionRange)
173
+ }
174
+ }
175
175
176
176
def getGitHubRepo : Option [String ] = {
177
177
val remoteUrl = " git config --get remote.origin.url" .!! .trim
You can’t perform that action at this time.
0 commit comments