forked from aboutcode-org/scancode.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vulnerability support for discovered dependencies aboutcode-org#835…
… (aboutcode-org#846) Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
18 changed files
with
176 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -363,6 +363,7 @@ class Meta: | |
"datafile_path", | ||
"datasource_id", | ||
"package_type", | ||
"affected_by_vulnerabilities", | ||
] | ||
|
||
|
||
|
This file contains 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
17 changes: 17 additions & 0 deletions
17
scanpipe/migrations/0040_discovereddependency_affected_by_vulnerabilities.py
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.3 on 2023-08-02 10:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("scanpipe", "0039_discoveredpackage_compliance_alert_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="discovereddependency", | ||
name="affected_by_vulnerabilities", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
] |
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -251,7 +251,8 @@ | |
"for_package_uid": "pkg:pypi/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758", | ||
"datafile_path": "asgiref-3.3.0-py3-none-any.whl", | ||
"datasource_id": "pypi_wheel", | ||
"package_type": "pypi" | ||
"package_type": "pypi", | ||
"affected_by_vulnerabilities": [] | ||
}, | ||
{ | ||
"purl": "pkg:pypi/pytest", | ||
|
@@ -264,7 +265,8 @@ | |
"for_package_uid": "pkg:pypi/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758", | ||
"datafile_path": "asgiref-3.3.0-py3-none-any.whl-extract/asgiref-3.3.0.dist-info/METADATA", | ||
"datasource_id": "pypi_wheel_metadata", | ||
"package_type": "pypi" | ||
"package_type": "pypi", | ||
"affected_by_vulnerabilities": [] | ||
}, | ||
{ | ||
"purl": "pkg:pypi/pytest-asyncio", | ||
|
@@ -277,7 +279,8 @@ | |
"for_package_uid": "pkg:pypi/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758", | ||
"datafile_path": "asgiref-3.3.0-py3-none-any.whl", | ||
"datasource_id": "pypi_wheel", | ||
"package_type": "pypi" | ||
"package_type": "pypi", | ||
"affected_by_vulnerabilities": [] | ||
}, | ||
{ | ||
"purl": "pkg:pypi/pytest-asyncio", | ||
|
@@ -290,7 +293,8 @@ | |
"for_package_uid": "pkg:pypi/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758", | ||
"datafile_path": "asgiref-3.3.0-py3-none-any.whl-extract/asgiref-3.3.0.dist-info/METADATA", | ||
"datasource_id": "pypi_wheel_metadata", | ||
"package_type": "pypi" | ||
"package_type": "pypi", | ||
"affected_by_vulnerabilities": [] | ||
} | ||
], | ||
"files": [ | ||
|
Oops, something went wrong.