Skip to content

Commit

Permalink
remove cve field from docs (#10110)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer authored May 8, 2024
1 parent 4959f60 commit 965a68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/en/contributing/how-to-write-a-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 965a68d

Please sign in to comment.