Skip to content

Commit

Permalink
Bumped dependency-check-core version to 3.1.1 (#35)
Browse files Browse the repository at this point in the history
* Bumped dependency-check-core version to 3.1.1
* Started implementing support for CpeStartsWith
* Pass dependencyCheckCpeStartsWith if set.
* Passing of CpeStartsWith to dc-analyzer.
  • Loading branch information
mrtnrdl authored and albuch committed Feb 20, 2018
1 parent 2bd1c4a commit 19d7a73
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ dependencyCheckBundleAuditEnabled | Sets whether or not the Ruby Bundle Audit An
dependencyCheckPathToBundleAudit| The path to bundle audit. |
dependencyCheckAssemblyAnalyzerEnabled | Sets whether or not the .NET Assembly Analyzer should be used. | true
dependencyCheckPathToMono | The path to Mono for .NET assembly analysis on non-windows systems. |
dependencyCheckCpeStartsWIth | The starting String to identify the CPEs that are qualified to be imported. |

#### Advanced Configuration
The following properties can be configured in the plugin. However, they are less frequently changed. One exception may be the cvedUrl properties, which can be used to host a mirror of the NVD within an enterprise environment.
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sbtPlugin := true

libraryDependencies ++= Seq(
"commons-collections" % "commons-collections" % "3.2.2",
"org.owasp" % "dependency-check-core" % "3.1.0"
"org.owasp" % "dependency-check-core" % "3.1.1"
)
libraryDependencies += {
appConfiguration.value.provider.id.version match {
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
unmanagedSourceDirectories in Compile += baseDirectory.value.getParentFile / "src" / "main" / "scala"
libraryDependencies ++= Seq(
"commons-collections" % "commons-collections" % "3.2.2",
"org.owasp" % "dependency-check-core" % "3.1.0",
"org.owasp" % "dependency-check-core" % "3.1.1",
"org.slf4j" % "slf4j-simple" % "1.7.25"
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ trait DependencyCheckKeys {
lazy val dependencyCheckSkipOptionalScope = settingKey[Boolean]("Skips analysis for artifacts with Optional Scope ")
lazy val dependencyCheckSuppressionFile = settingKey[Option[File]]("The file path to the XML suppression file - used to suppress false positives. If you want to add multiple files use dependencyCheckSuppressionFiles instead.")
lazy val dependencyCheckSuppressionFiles = settingKey[Seq[File]]("The sequence of file paths to the XML suppression files - used to suppress false positives")
lazy val dependencyCheckCpeStartsWith = settingKey[Option[String]]("The starting String to identify the CPEs that are qualified to be imported.")
lazy val dependencyCheckHintsFile = settingKey[Option[File]]("The file path to the XML hints file - used to resolve false negatives.")
lazy val dependencyCheckEnableExperimental = settingKey[Option[Boolean]]("Enable the experimental analyzers. If not enabled the experimental analyzers (see below) will not be loaded or used. ")
// Analyzer configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ object DependencyCheckListSettingsTask {
logFileSetting(ANALYZER_BUNDLE_AUDIT_PATH, "dependencyCheckPathToBundleAudit", log)
logBooleanSetting(ANALYZER_ASSEMBLY_ENABLED, "dependencyCheckAssemblyAnalyzerEnabled", log)
logFileSetting(ANALYZER_ASSEMBLY_MONO_PATH, "dependencyCheckPathToMono", log)
logStringSetting(CVE_CPE_STARTS_WITH_FILTER, "dependencyCheckCpeStartsWith", log)
// Advanced Configuration
logUrlSetting(CVE_MODIFIED_12_URL, "dependencyCheckCveUrl12Modified", log)
logUrlSetting(CVE_MODIFIED_20_URL, "dependencyCheckCveUrl20Modified", log)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ object DependencyCheckPlugin extends sbt.AutoPlugin {
dependencyCheckSkipOptionalScope := false,
dependencyCheckSuppressionFile := None,
dependencyCheckSuppressionFiles := Seq(),
dependencyCheckCpeStartsWith := None,
dependencyCheckHintsFile := None,
dependencyCheckEnableExperimental := None,
dependencyCheckArchiveAnalyzerEnabled := None,
Expand Down Expand Up @@ -182,6 +183,7 @@ object DependencyCheckPlugin extends sbt.AutoPlugin {
setStringSetting(DB_CONNECTION_STRING, dependencyCheckConnectionString.value)
setStringSetting(DB_USER, dependencyCheckDatabaseUser.value)
setStringSetting(DB_PASSWORD, dependencyCheckDatabasePassword.value)
setStringSetting(CVE_CPE_STARTS_WITH_FILTER, dependencyCheckCpeStartsWith.value)

initProxySettings()

Expand Down

0 comments on commit 19d7a73

Please sign in to comment.