-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to manually specify addtional CPE entries to be check…
…ed. (#361) Co-authored-by: Jeremy Long <[email protected]>
- Loading branch information
1 parent
41b5074
commit 4cffcda
Showing
6 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/main/groovy/org/owasp/dependencycheck/gradle/extension/AdditionalCpe.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.owasp.dependencycheck.gradle.extension | ||
|
||
import org.gradle.api.Named | ||
|
||
/** | ||
* Holder for the information regarding an additional CPE to be checked. | ||
*/ | ||
@groovy.transform.CompileStatic | ||
class AdditionalCpe implements Named { | ||
|
||
AdditionalCpe(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* Name assigned to the CPE entry during configuration. | ||
*/ | ||
String name; | ||
|
||
/** | ||
* Description for the what the CPE represents. | ||
*/ | ||
String description | ||
|
||
/** | ||
* The CPE to be checked against the database. | ||
*/ | ||
String cpe | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
plugins { | ||
id 'org.owasp.dependencycheck' | ||
id 'java' | ||
} | ||
|
||
sourceCompatibility = 1.5 | ||
version = '1.0' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencyCheck { | ||
failBuildOnCVSS = 0 | ||
additionalCpes { | ||
commonsCollections { | ||
description = "Commons Collections 3.2" | ||
cpe = "cpe:2.3:a:apache:commons_collections:3.2:*:*:*:*:*:*:*" | ||
} | ||
commonsFileUpload { | ||
description = "Commons File Upload 1.3.1" | ||
cpe = "cpe:2.3:a:apache:commons_fileupload:1.3.1:*:*:*:*:*:*:*" | ||
} | ||
} | ||
} |