-
-
Notifications
You must be signed in to change notification settings - Fork 243
Add patched package #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add patched package #436
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
3e094c9
Add migrations and code to infer patched package.
sbs2001 7021526
Refactor the import process to implement patched_package
sbs2001 d684871
Refactor alpine importer and it's tests fwrt new models
sbs2001 8bc91ff
Refactor debian importer and it's tests wrt to new models
sbs2001 cea3738
Refactor apache kafka and it's tests wrt new models
sbs2001 b0ccf83
Refactor apache tomcata and it's importers for new models
sbs2001 5344e95
Refactor archlinux importer wrt new models
sbs2001 6607c29
Refactor elixr security importer wrt new models
sbs2001 d430a21
Refactor gentoo importer wrt new models and update univers
sbs2001 46fd0a0
Use AffectedPackageWithPatched dataclass and refactor the Advisory in…
sbs2001 1508274
Refactor github importer wrt new models
sbs2001 2b3334f
Refactor istio importer wrt new models
sbs2001 1cae542
Refactor kaybee importer wrt new models
sbs2001 f73fbc9
Refactor nginx importer wrt new models
sbs2001 e97c415
Refactor npm importer wrt new models
sbs2001 c1c0d14
Refactor openssl wrt new models
sbs2001 e9cd094
Refactor postgresql importer
sbs2001 db17f09
Refactor msr2019 importer
sbs2001 9f6bb60
Refactor redhat importer
sbs2001 92fd1ad
Refactor retire dot net
sbs2001 30b0b49
Refactor ruby importer
sbs2001 c852afc
Refactor rust importer and simplify it's tests
sbs2001 d1f5485
Refactor safetydb wrt new models and simplify tests
sbs2001 527324f
Disable suse backport importer and refactor suse score importer
sbs2001 29f1185
Refactor ubuntu usn importer and tests
sbs2001 c12e985
Refactor ubuntu
sbs2001 cbd6c73
Fix more tests and refactor importer_runner
sbs2001 9246553
Update fixtures
sbs2001 36f4d1d
Fix model relations and patch inference in importers
sbs2001 5999a8a
Simplify patch inference, fix arch importer bug and remove useless code
sbs2001 d70a931
Fix codestyle
sbs2001 5973bbc
Add docstrings for model properties
sbs2001 cc5bbb4
Improve naming and docs
sbs2001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,110 +1,89 @@ | ||
| [ | ||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 1, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2014-8242", | ||
| "summary": "" | ||
|
|
||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 1, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2014-8242", | ||
| "old_vulnerability_id": null, | ||
| "summary": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 2, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2009-1382", | ||
| "old_vulnerability_id": null, | ||
| "summary": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 3, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2009-2459", | ||
| "old_vulnerability_id": null, | ||
| "summary": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 1, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "librsync", | ||
| "version": "0.9.7-10", | ||
| "subpath": "", | ||
| "qualifiers": { | ||
| "distro": "jessie" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 2, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "mimetex", | ||
| "version": "1.74-1", | ||
| "subpath": "", | ||
| "qualifiers": { | ||
| "distro": "jessie" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 3, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "mimetex", | ||
| "version": "1.50-1.1", | ||
| "subpath": "", | ||
| "qualifiers": { | ||
| "distro": "jessie" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 1, | ||
| "fields": { | ||
| "package": 1, | ||
| "vulnerability": 1, | ||
| "patched_package": null | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 4, | ||
| "fields": { | ||
| "package": 3, | ||
| "vulnerability": 3, | ||
| "patched_package": 2 | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 2, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2009-1382", | ||
| "summary": "" | ||
|
|
||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.vulnerability", | ||
| "pk": 3, | ||
| "fields": { | ||
| "vulnerability_id": "CVE-2009-2459", | ||
| "summary": "" | ||
|
|
||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 1, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "librsync", | ||
| "version": "0.9.7-10", | ||
| "qualifiers": {"distro":"jessie"}, | ||
| "subpath": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 2, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "mimetex", | ||
| "version": "1.74-1", | ||
| "qualifiers": {"distro":"jessie"}, | ||
| "subpath": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.package", | ||
| "pk": 3, | ||
| "fields": { | ||
| "type": "deb", | ||
| "namespace": "debian", | ||
| "name": "mimetex", | ||
| "version": "1.50-1.1", | ||
| "qualifiers": {"distro":"jessie"}, | ||
| "subpath": "" | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 1, | ||
| "fields": { | ||
| "vulnerability": 1, | ||
| "package": 1, | ||
| "is_vulnerable": true | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 10, | ||
| "fields": { | ||
| "vulnerability": 2, | ||
| "package": 2, | ||
| "is_vulnerable": false | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 2, | ||
| "fields": { | ||
| "vulnerability": 2, | ||
| "package": 3, | ||
| "is_vulnerable": false | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 3, | ||
| "fields": { | ||
| "vulnerability": 3, | ||
| "package": 2, | ||
| "is_vulnerable": false | ||
| } | ||
| }, | ||
| { | ||
| "model": "vulnerabilities.packagerelatedvulnerability", | ||
| "pk": 4, | ||
| "fields": { | ||
| "vulnerability": 3, | ||
| "package": 3, | ||
| "is_vulnerable": false | ||
| } | ||
| } | ||
| ] | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything that could replace is_vulnerable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should be
patched_packageadding it.