Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rajeswari|Nandha] Add OWASP dependency check and fix the vulnerabilities #52

Merged
merged 1 commit into from Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions build.gradle
Expand Up @@ -7,6 +7,7 @@ buildscript {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.18"
classpath 'org.owasp:dependency-check-gradle:3.3.2'
}
}
description = 'A Swagger assertion library'
Expand All @@ -20,6 +21,7 @@ apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'com.jfrog.bintray'
apply plugin: "com.jfrog.artifactory"
apply from: 'gradle/publishing.gradle'
apply from: 'gradle/security.gradle'

tasks.withType(JavaCompile) {
sourceCompatibility = "1.8"
Expand All @@ -36,8 +38,8 @@ repositories {
}

dependencies {
compile "io.swagger:swagger-compat-spec-parser:1.0.34"
compile "commons-collections:commons-collections:3.2.1"
compile "io.swagger:swagger-compat-spec-parser:1.0.35"
compile "commons-collections:commons-collections:3.2.2"
compile "org.slf4j:slf4j-api:1.7.12"
compile "org.assertj:assertj-core:3.9.1"
testCompile "junit:junit:4.11"
Expand Down
20 changes: 20 additions & 0 deletions gradle/security.gradle
@@ -0,0 +1,20 @@
apply plugin: 'org.owasp.dependencycheck'

check.dependsOn dependencyCheckAnalyze

dependencyCheck {
cveValidForHours = 8
failBuildOnCVSS = 5
analyzers {
nexusEnabled = false
pyDistributionEnabled = false
pyPackageEnabled = false
rubygemsEnabled = false
cmakeEnabled = false
autoconfEnabled = false
composerEnabled = false
nodeEnabled = false
nuspecEnabled = false
assemblyEnabled = false
}
}