Commit 5473787
authored
refactor: cve5 conversion to be more modular and extensible per CNA (#4094)
This PR:
- Moves the cve5 conversion code out of the cmd folder
- creates a common.go folder for reused/common functions by the
conversion
- initializes a factory-based design pattern for CNA based version
extraction methods
- Linux has its own extractor now
- downside of this is that we may have to maintain multiple versions of
the extractions, but we'll mitigate this by making sure code that is
doing the same thing is abstracted into its own function.
- splits apart some of the version extraction patterns into their own
functions.1 parent 67d9e8a commit 5473787
File tree
13 files changed
+694
-557
lines changed- vulnfeeds
- cmd
- cve-bulk-converter
- cve-single-converter
- cvelist2osv
- cvelist2osv
- testdata
13 files changed
+694
-557
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments