-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add policies and compliance alert support for Discovered Packages #151 (
#805) Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
11 changed files
with
211 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
50 changes: 50 additions & 0 deletions
50
scanpipe/migrations/0039_discoveredpackage_compliance_alert_and_more.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,50 @@ | ||
# Generated by Django 4.2.3 on 2023-07-11 12:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("scanpipe", "0038_migrate_vulnerability_data"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="discoveredpackage", | ||
name="compliance_alert", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("ok", "Ok"), | ||
("warning", "Warning"), | ||
("error", "Error"), | ||
("missing", "Missing"), | ||
], | ||
editable=False, | ||
help_text="Indicates how the license expression complies with provided policies.", | ||
max_length=10, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="codebaseresource", | ||
name="compliance_alert", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("ok", "Ok"), | ||
("warning", "Warning"), | ||
("error", "Error"), | ||
("missing", "Missing"), | ||
], | ||
editable=False, | ||
help_text="Indicates how the license expression complies with provided policies.", | ||
max_length=10, | ||
), | ||
), | ||
migrations.AddIndex( | ||
model_name="discoveredpackage", | ||
index=models.Index( | ||
fields=["compliance_alert"], name="scanpipe_di_complia_ccf329_idx" | ||
), | ||
), | ||
] |
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
Oops, something went wrong.