Skip to content

Commit

Permalink
Generate dependency check report in xml format
Browse files Browse the repository at this point in the history
  • Loading branch information
Rkareko committed Aug 9, 2023
1 parent 7b382e1 commit a399ae6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,9 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: dependency-check-report
path: android/build/reports/dependency-check-report.html
path: android/build/reports/dependency-check-report.xml


- name: Install Dependency Check CLI
run: |
wget https://github.com/jeremylong/DependencyCheck/releases/download/v8.2.1/dependency-check-8.2.1-release.zip
unzip dependency-check-8.2.1-release.zip
- name: Convert XML report to HTML
run: |
cd dependency-check/bin
./dependency-check.sh --project "fhircore" --scan "../android" --format "HTML"
working-directory: android



# - name: Run Dependency Check
# uses: dependency-check/Dependency-Check_Action@main
Expand All @@ -74,10 +62,3 @@ jobs:
# path: "."
# format: 'XML'
# out: 'reports'


- name: Upload Dependency Check report in HTML format
uses: actions/upload-artifact@v2
with:
name: dependency-check-report
path: dependency-check-report.html
8 changes: 7 additions & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ buildscript {
}
}

plugins { id("org.jetbrains.dokka") version "1.8.20" }
plugins {
id("org.jetbrains.dokka") version "1.8.20"
id("org.owasp.dependencycheck") version "8.2.1"
}

tasks.dokkaHtmlMultiModule {
moduleName.set("OpenSRP")
Expand All @@ -43,6 +46,9 @@ allprojects {
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
maven(url = "https://jcenter.bintray.com/")
apply(plugin = "org.owasp.dependencycheck")
tasks.dependencyCheckAggregate{
dependencyCheck.formats.add("XML")
}
}
}

Expand Down

0 comments on commit a399ae6

Please sign in to comment.