Skip to content
Open
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
16 changes: 16 additions & 0 deletions .github/workflows/github-actions-java8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
with:
java-version: "8"
distribution: "zulu"
check-latest: true # Get the latest Java 8 patch version

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
Expand All @@ -64,6 +65,21 @@ jobs:
if: runner.os != 'Windows'
run: chmod +x ./gradlew

- name: Run OWASP dependency check
if: matrix.os == 'windows-latest' # Only run on one platform
run: ./gradlew dependencyCheckAnalyze --no-daemon --stacktrace --continue
continue-on-error: true # Don't fail the build if dependency check has issues
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}

- name: Upload dependency check report
uses: actions/upload-artifact@v4
if: matrix.os == 'windows-latest' # Only upload from one platform
with:
name: dependency-check-report
path: build/reports/dependency-check-report.html
retention-days: 30

- name: Build with Gradle
run: ./gradlew buildShadow --no-daemon --stacktrace

Expand Down
19 changes: 19 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,22 @@ tasks {
dependsOn(shadowJar)
}
}

// OWASP Dependency Check configuration
dependencyCheck {
// Format for the dependency check report
formats = listOf("HTML")

// Suppress false positives (optional - can be configured as needed)
suppressionFile = "dependency-check-suppressions.xml"

// Fail build on CVSS score of 7 or higher (High/Critical vulnerabilities)
failBuildOnCVSS = 7.0f

// Enable NVD API with your API key
nvd.apiKey = System.getenv("NVD_API_KEY") ?: ""
nvd.delay = 4000

// Enable auto-update with NVD API
autoUpdate = true
}
Loading