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

Update transitive dependencies with security vulnerabilities #121

Merged
merged 1 commit into from
Feb 5, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ registries:
updates:
- package-ecosystem: github-actions
directory: /
open-pull-requests-limit: 50
schedule:
interval: monthly
- package-ecosystem: gradle
directory: /
registries:
- maven-snapshots
- creek-github-packages
open-pull-requests-limit: 50
schedule:
interval: monthly
20 changes: 1 addition & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ subprojects {
set("jsonSchemaVersion", "1.0.39") // https://mvnrepository.com/artifact/com.kjetland/mbknor-jackson-jsonschema
set("classGraphVersion", "4.8.154") // https://mvnrepository.com/artifact/io.github.classgraph/classgraph
set("kotlinVersion", "1.7.22") // https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-common
set("scalaVersion", "2.13.10")

set("log4jVersion", "2.19.0") // https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
set("guavaVersion", "31.1-jre") // https://mvnrepository.com/artifact/com.google.guava/guava
Expand All @@ -48,7 +49,6 @@ subprojects {
val junitPioneerVersion: String by extra
val mockitoVersion: String by extra
val hamcrestVersion : String by extra
val kotlinVersion : String by extra

dependencies {
testImplementation("org.creekservice:creek-test-hamcrest:$creekVersion")
Expand All @@ -66,24 +66,6 @@ subprojects {
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}

configurations.all {
resolutionStrategy.eachDependency {
// Can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/174 is resolved:
if (requested.group == "org.scala-lang" && requested.name == "scala-library") {
useVersion("2.13.10")
because("security vulnerabilities found < 2.13.9: " +
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36944")
}

// Can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/178 is resolved:
if (requested.group == "org.jetbrains.kotlin" && requested.name == "kotlin-scripting-compiler-embeddable") {
useVersion(kotlinVersion)
because("security vulnerabilities found in 1.3.50: " +
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24329")
}
}
}
}

defaultTasks("format", "static", "check")
10 changes: 10 additions & 0 deletions generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ val log4jVersion : String by extra
val jacksonVersion : String by extra
val jsonSchemaVersion : String by extra
val classGraphVersion : String by extra
val scalaVersion : String by extra
val kotlinVersion : String by extra

dependencies {
implementation("org.creekservice:creek-base-annotation:$creekVersion")
Expand All @@ -43,6 +45,14 @@ dependencies {
// Can be updated once https://github.com/mbknor/mbknor-jackson-jsonSchema/pull/172 is resolved:
implementation("org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion")

// The following are set to bring in dependency versions beyond known security vulnerabilities:
// The following can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/174 is resolved:
// Also see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36944
implementation("org.scala-lang:scala-library:$scalaVersion")
// The following can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/178 is resolved:
// Also see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24329
implementation("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:$kotlinVersion")

testImplementation(project(":test-types"))
}

Expand Down
9 changes: 9 additions & 0 deletions test-types/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@ val creekVersion : String by extra
val jacksonVersion : String by extra
val jsonSchemaVersion : String by extra
val kotlinVersion : String by extra
val scalaVersion : String by extra

dependencies {
implementation("org.creekservice:creek-base-annotation:$creekVersion")
implementation("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
implementation("com.kjetland:mbknor-jackson-jsonschema_2.13:$jsonSchemaVersion")

implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")

// The following are set to bring in dependency versions beyond known security vulnerabilities:
// The following can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/174 is resolved:
// Also see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36944
implementation("org.scala-lang:scala-library:$scalaVersion")
// The following can be removed once https://github.com/mbknor/mbknor-jackson-jsonSchema/issues/178 is resolved:
// Also see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24329
implementation("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:$kotlinVersion")
}