File tree Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 86
86
paths :
87
87
- ~/.gradle/caches
88
88
- ~/.gradle/wrapper
89
+ - run :
90
+ name : Audit Dependencies
91
+ command : ./gradlew dependencyCheckAnalyze -PrunWithDependencyCheck
89
92
build :
90
93
docker :
91
94
- image : cimg/base:stable
Original file line number Diff line number Diff line change
1
+ ## 1.0.6 (May 11, 2022)
2
+ * Made an automated vulnerability check run in CI/CD
3
+
1
4
## 1.0.5 (May 6, 2022)
2
5
* Add an automated vulnerability check
3
6
Original file line number Diff line number Diff line change @@ -3,7 +3,17 @@ apply plugin: 'groovy'
3
3
apply plugin : ' idea'
4
4
apply plugin : ' eclipse'
5
5
apply plugin : ' java-library-distribution'
6
- apply plugin : org.owasp.dependencycheck.gradle.DependencyCheckPlugin
6
+ if (hasProperty(' runWithDependencyCheck' )) {
7
+ apply plugin : org.owasp.dependencycheck.gradle.DependencyCheckPlugin
8
+
9
+ check. dependsOn dependencyCheckAnalyze
10
+
11
+ dependencyCheck {
12
+ format = ' HTML'
13
+ failBuildOnCVSS = 7
14
+ suppressionFile= ' ./dependencyCheck-suppression.xml'
15
+ }
16
+ }
7
17
8
18
group = ' io.elastic'
9
19
@@ -49,23 +59,12 @@ uploadArchives {
49
59
}
50
60
}
51
61
52
- check. dependsOn dependencyCheckAnalyze
53
-
54
- dependencyCheck {
55
- format = ' ALL'
56
- // Dependency Check script will fail in case there are critical (9.0-10.0) vulnerabilities.
57
- // It should be configured to 7 (high and critical), but so far is not possible as 'axis' library
58
- // and log4j issues which does not have any updates that solve the problem
59
- failBuildOnCVSS = 7
60
- suppressionFile= ' ./dependencyCheck-suppression.xml'
61
- }
62
-
63
62
buildscript {
64
63
repositories {
65
64
mavenCentral()
66
65
}
67
66
dependencies {
68
- classpath ' org.owasp:dependency-check-gradle:6.0.3 '
67
+ classpath ' org.owasp:dependency-check-gradle:7.1.0.1 '
69
68
}
70
69
}
71
70
Original file line number Diff line number Diff line change 2
2
"title" : " Petstore API (Java)" ,
3
3
"description" : " elastic.io component for the Petstore API" ,
4
4
"docsUrl" : " https://github.com/elasticio/petstore-component-java" ,
5
- "version" : " 1.0.5 " ,
5
+ "version" : " 1.0.6 " ,
6
6
"credentials" : {
7
7
"fields" : {
8
8
"apiKey" : {
You can’t perform that action at this time.
0 commit comments