File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,8 +196,7 @@ def ruby_dump(extract_data):
196196 for package_data in extract_data :
197197
198198 vulnerability , _ = Vulnerability .objects .get_or_create (
199- cve_id = package_data ['cve_id' ],
200- summary = package_data ['summary' ],
199+ cve_id = package_data ['cve_id' ]
201200 )
202201
203202 VulnerabilityReference .objects .get_or_create (
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ def get_patched_range(spec_list):
3838
3939
4040def import_vulnerabilities ():
41- ids = set ()
4241 vulnerability_package_dicts = []
4342 for vulnerability in rubygem_advisories (RUBYSEC_DB_URL ):
4443
@@ -48,13 +47,8 @@ def import_vulnerabilities():
4847 if not package_name :
4948 continue
5049
51- summary = vulnerability .get ('description' , '' )
52-
5350 if 'cve' in vulnerability :
5451 vulnerability_id = 'CVE-{}' .format (vulnerability ['cve' ])
55- if vulnerability_id in ids :
56- continue
57- ids .add (vulnerability_id )
5852 else :
5953 continue
6054
@@ -75,7 +69,6 @@ def import_vulnerabilities():
7569 affected_versions = all_versions - unaffected_versions
7670 vulnerability_package_dicts .append ({
7771 'package_name' : package_name ,
78- 'summary' : summary ,
7972 'cve_id' : vulnerability_id ,
8073 'fixed_versions' : unaffected_versions ,
8174 'affected_versions' : affected_versions ,
You can’t perform that action at this time.
0 commit comments