From 80d3a3d7c8c625377ff3567a7485cac560c4ba02 Mon Sep 17 00:00:00 2001 From: ThomGeG Date: Thu, 4 Aug 2022 10:11:41 +1000 Subject: [PATCH] Adding icons and URLs for Trivy and DependencyCheck --- SUPPORTED-FORMATS.md | 10 ++++++---- .../registry/OwaspDependencyCheckDescriptor.java | 11 +++++++++++ .../hm/hafner/analysis/registry/TrivyDescriptor.java | 5 +++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/SUPPORTED-FORMATS.md b/SUPPORTED-FORMATS.md index fef6a795d..4046977ad 100644 --- a/SUPPORTED-FORMATS.md +++ b/SUPPORTED-FORMATS.md @@ -1,4 +1,4 @@ - + # Supported Report Formats The static analysis model supports the following report formats. @@ -121,7 +121,7 @@ If your tool is supported, but some properties are missing (icon, URL, etc.), pl trivy - - + Aquasec Trivy @@ -1323,10 +1323,12 @@ analyze - iccxxxxcompiler_opts cstat2.cFor details check the IAR C- owasp-dependency-check - - + OWASP Dependency Check - OWASP Dependency Check + + OWASP Dependency Check + **/dependency-check-report.json diff --git a/src/main/java/edu/hm/hafner/analysis/registry/OwaspDependencyCheckDescriptor.java b/src/main/java/edu/hm/hafner/analysis/registry/OwaspDependencyCheckDescriptor.java index f0f1c6455..7372a7923 100644 --- a/src/main/java/edu/hm/hafner/analysis/registry/OwaspDependencyCheckDescriptor.java +++ b/src/main/java/edu/hm/hafner/analysis/registry/OwaspDependencyCheckDescriptor.java @@ -23,4 +23,15 @@ public IssueParser createParser(final Option... options) { public String getPattern() { return "**/dependency-check-report.json"; } + + @Override + public String getUrl() { + return "https://github.com/jeremylong/DependencyCheck"; + } + + @Override + public String getIconUrl() { + return "https://raw.githubusercontent.com/jeremylong/DependencyCheck/main/src/site/resources/images/logo.svg"; + } + } diff --git a/src/main/java/edu/hm/hafner/analysis/registry/TrivyDescriptor.java b/src/main/java/edu/hm/hafner/analysis/registry/TrivyDescriptor.java index 53a7742b5..336394f33 100644 --- a/src/main/java/edu/hm/hafner/analysis/registry/TrivyDescriptor.java +++ b/src/main/java/edu/hm/hafner/analysis/registry/TrivyDescriptor.java @@ -36,4 +36,9 @@ public String getHelp() { public String getUrl() { return "https://github.com/aquasecurity/trivy"; } + + @Override + public String getIconUrl() { + return "https://github.com/aquasecurity/trivy/blob/main/docs/imgs/logo.png?raw=true"; + } }