Skip to content

Commit

Permalink
Merge pull request #23 from cultureamp/CSRE-3441/update-owasp-plugin
Browse files Browse the repository at this point in the history
chore(deps): update org.owasp.dependencycheck to v9.0.1 [CSRE-3441]
  • Loading branch information
Aysa Matueva authored Dec 6, 2023
2 parents 79fdaf0 + 50d4fd2 commit 3970102
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push]

env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
18 changes: 11 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
id("org.jmailen.kotlinter") version "3.6.0"

// Vulnerable dependency checker
id("org.owasp.dependencycheck") version "8.3.1"
id("org.owasp.dependencycheck") version "9.0.2"

// Apply the java-library plugin for API and implementation separation.
`java-library`
Expand Down Expand Up @@ -42,14 +42,16 @@ dependencies {
// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")

implementation("ch.qos.logback:logback-classic:1.2.11")
implementation("ch.qos.logback:logback-core:1.2.11")
// CVE-2023-6378 https://logback.qos.ch/news.html#1.3.12
implementation("ch.qos.logback:logback-classic:1.4.14")
implementation("ch.qos.logback:logback-core:1.4.14")

// Upgraded version of Jackson Databind to patch:
// CVE-2022-42003 - https://github.com/advisories/GHSA-jjjh-jjxp-wpff
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
// Previous 2.15.2 version was flagged as vulnerability:
// CVE-2023-35116 - developers claim it's a bogus alert https://github.com/FasterXML/jackson-databind/issues/3972
// but I guess won't hurt to upgrade it + will resolve dependency check failure
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.0")

// Upgraded version of Snappy Java to patch:
// Upgraded version of Snappy Java to patch:
// CVE-2023-34454 - https://github.com/advisories/GHSA-fjpj-2g6w-x25r
// CVE-2023-34453 - https://github.com/advisories/GHSA-pqr6-cmr2-h8hf
// CVE-2023-34455 - https://github.com/advisories/GHSA-qcwq-55hx-v3vh
Expand All @@ -69,5 +71,7 @@ dependencyCheck {
// anything over a 5.0 is above a 'warning'
failBuildOnCVSS = 5.0F
analyzers.assemblyEnabled = false

nvd.apiKey = System.getenv("NVD_API_KEY") ?: ""
}

0 comments on commit 3970102

Please sign in to comment.