Skip to content

Commit

Permalink
bundleraudit: remove cves (#9827)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer authored Mar 28, 2024
1 parent b4a9b76 commit ed43d0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion dojo/tools/bundler_audit/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def get_findings(self, filename, test):
dynamic_finding=False,
component_name=gem_name,
component_version=gem_version,
cve=advisory_id,
)
if advisory_id:
find.unsaved_vulnerability_ids = [advisory_id]
Expand Down
4 changes: 0 additions & 4 deletions unittests/tools/test_bundler_audit_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_get_findings_version9(self):
self.assertEqual("Medium", finding.severity)
self.assertEqual(1, len(finding.unsaved_vulnerability_ids))
self.assertEqual("CVE-2020-8161", finding.unsaved_vulnerability_ids[0])
self.assertEqual("CVE-2020-8161", finding.cve)
self.assertEqual("rack", finding.component_name)
self.assertEqual("1.6.13", finding.component_version)
with self.subTest(i=1):
Expand All @@ -47,7 +46,6 @@ def test_get_findings_version9(self):
self.assertEqual("Medium", finding.severity)
self.assertEqual(1, len(finding.unsaved_vulnerability_ids))
self.assertEqual("CVE-2020-8184", finding.unsaved_vulnerability_ids[0])
self.assertEqual("CVE-2020-8184", finding.cve)
self.assertEqual("rack", finding.component_name)
self.assertEqual("1.6.13", finding.component_version)
with self.subTest(i=2):
Expand All @@ -56,7 +54,6 @@ def test_get_findings_version9(self):
self.assertEqual("Medium", finding.severity)
self.assertEqual(1, len(finding.unsaved_vulnerability_ids))
self.assertEqual("CVE-2018-3760", finding.unsaved_vulnerability_ids[0])
self.assertEqual("CVE-2018-3760", finding.cve)
self.assertEqual("sprockets", finding.component_name)
self.assertEqual("2.2.3", finding.component_version)
with self.subTest(i=3):
Expand All @@ -65,6 +62,5 @@ def test_get_findings_version9(self):
self.assertEqual("Medium", finding.severity)
self.assertEqual(1, len(finding.unsaved_vulnerability_ids))
self.assertEqual("GHSA-xc9x-jj77-9p9j", finding.unsaved_vulnerability_ids[0])
self.assertEqual("GHSA-xc9x-jj77-9p9j", finding.cve)
self.assertEqual("nokogiri", finding.component_name)
self.assertEqual("1.15.2", finding.component_version)

0 comments on commit ed43d0c

Please sign in to comment.