Skip to content

Commit

Permalink
fix advisory link
Browse files Browse the repository at this point in the history
Signed-off-by: Marlon Pina Tojal <[email protected]>
  • Loading branch information
Marlon Pina Tojal committed Dec 2, 2023
1 parent f35a2ac commit 9801117
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/shared/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ $common.formatAnalyzerLabel = function formatAnalyzerLabel(analyzer, vulnSource,
analyzerUrl = "https://osv.dev/vulnerability/" + vulnId;
} else if(vulnSource === "SNYK") {
analyzerUrl = "https://security.snyk.io/vuln/" + vulnId;
} else if(vulnSource === "TRIVY") {
analyzerUrl = "https://avd.aquasec.com/nvd/" + vulnId;
}
break;
case 'OSSINDEX_ANALYZER':
Expand All @@ -138,7 +136,11 @@ $common.formatAnalyzerLabel = function formatAnalyzerLabel(analyzer, vulnSource,
break;
case 'TRIVY_ANALYZER':
analyzerLabel = "Trivy";

analyzerUrl = "https://avd.aquasec.com/nvd/" + vulnId;
if(vulnSource === "GITHUB") {
analyzerUrl = "https://github.com/advisories/" + vulnId;
}
break;
}
if (analyzerUrl) {
Expand Down Expand Up @@ -189,9 +191,6 @@ $common.resolveSourceVulnInfo = function resolveSourceVulnInfo(vulnSource, vulnI
sourceInfo.name = "Global Security Database";
sourceInfo.url = "https://github.com/cloudsecurityalliance/gsd-database";
break;
case "TRIVY":
sourceInfo.name = "Trivy";
sourceInfo.url = "https://avd.aquasec.com/nvd/" + vulnId;
case "VULNDB":
sourceInfo.name = "VulnDB";
sourceInfo.url = "https://vulndb.cyberriskanalytics.com/vulnerabilities/" + vulnId;
Expand Down

0 comments on commit 9801117

Please sign in to comment.