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

Check for security vulnerabilities 🔒 #216

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ jobs:

- name: Build with Gradle
run: ./gradlew build

- name: Check for security vulnerabilities
run: ./gradlew dependencyCheckAnalyze --nvdApiKey ${{ secrets.NVD_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,4 @@ gradle-app.setting

# My stuff 🙂
pullpitoK.build_artifacts.txt
/dependency-check-report.html
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id("com.adarshr.test-logger") version "4.0.0"
id("com.diffplug.spotless") version "6.25.0"
id("org.sonarqube") version "5.1.0.4882"
id("org.owasp.dependencycheck") version "9.1.0" apply false
application
}

Expand All @@ -18,6 +19,7 @@ repositories {
dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.owasp:dependency-check-gradle:9.1.0")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("com.github.tomakehurst:wiremock-jre8:3.0.1")
Expand Down Expand Up @@ -79,3 +81,11 @@ tasks.register<Jar>("uberJar") {
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}

allprojects {
apply(plugin = "org.owasp.dependencycheck")
}

configure<org.owasp.dependencycheck.gradle.extension.DependencyCheckExtension> {
format = org.owasp.dependencycheck.reporting.ReportGenerator.Format.ALL.toString()
}
Loading