A Github Action to parse DependencyCheck JSON reports, print the found vulnerabilities and fail the build if a vulnerability was found.
The Action takes one configuration parameter:
The path to the JSON report file of DependencyCheck. For SBT projects using the default configuration
of sbt-dependency-check
the path is
target/scala-<version>/sbt-1.0/dependency-check-report.json
.
jobs:
test:
steps:
- name: DependencyCheck
run: sbt -v -Dfile.encoding=UTF-8 dependencyCheck
- name: Print DependencyCheck Result
uses: albuch/sbt-dependency-check-action@v1.0
with:
jsonReportPath: "target/scala-2.12/sbt-1.0/dependency-check-report.json"