You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds the field cve_id to the Vulnerability model and based
on that, improves the data import for Arch Linux.
The improvements made have been discussed in issue #20:
- For each CVE in a given AVG, exactly one Vulnerability is stored
- For each CVE, one VulnerabilityReference to its page on
security.archlinux.org is stored
- Each ASA mentioned in an AVG is stored as a VulnerabilityReference
Since there is no production deployment of vulnerablecode yet, I took
the opportunity of changing the models to remove all migrations and
create a new one that creates the whole schema.
Since the cve_id field on Vulnerability has a unique constraint set, I
needed to make some changes to the import code that belong to issue #28.
I kept them minimal however so #28 is still open and needs to be
addressed later.
closes#20
Signed-off-by: Haiko Schol <[email protected]>
('type', models.CharField(blank=True, help_text='A short code to identify the type of this package. For example: gem for a Rubygem, docker for a container, pypi for a Python Wheel or Egg, maven for a Maven Jar, deb for a Debian package, etc.', max_length=16, null=True)),
26
+
('namespace', models.CharField(blank=True, help_text='Package name prefix, such as Maven groupid, Docker image owner, GitHub user or organization, etc.', max_length=255, null=True)),
27
+
('name', models.CharField(blank=True, help_text='Name of the package.', max_length=100, null=True)),
28
+
('version', models.CharField(blank=True, help_text='Version of the package.', max_length=50, null=True)),
29
+
('qualifiers', models.CharField(blank=True, help_text='Extra qualifying data for a package such as the name of an OS, architecture, distro, etc.', max_length=1024, null=True)),
30
+
('subpath', models.CharField(blank=True, help_text='Extra subpath within a package, relative to the package root.', max_length=200, null=True)),
0 commit comments