From 965a68d1fab941b6e43a541974b16c2a91ae62ca Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Wed, 8 May 2024 23:49:11 +0200 Subject: [PATCH] remove cve field from docs (#10110) --- docs/content/en/contributing/how-to-write-a-parser.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/en/contributing/how-to-write-a-parser.md b/docs/content/en/contributing/how-to-write-a-parser.md index 71141fcd1b0..57a768008be 100644 --- a/docs/content/en/contributing/how-to-write-a-parser.md +++ b/docs/content/en/contributing/how-to-write-a-parser.md @@ -157,7 +157,7 @@ Good example: ```python if "mykey" in data: - finding.cve = data["mykey"] + finding.cwe = data["mykey"] ``` ### Do not parse CVSS by hand (vector, score or severity) @@ -244,7 +244,7 @@ For ex: self.assertEqual(True, finding.verified) self.assertEqual(False, finding.duplicate) self.assertIn(finding.severity, Finding.SEVERITIES) - self.assertEqual("CVE-2020-36234", finding.cve) + self.assertEqual("CVE-2020-36234", finding.vulnerability_ids[0]) self.assertEqual(261, finding.cwe) self.assertEqual("CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", finding.cvssv3) self.assertIn("security", finding.tags)