File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ def get_project_compliance_alerts(project, fail_level="error"):
105105 .only (* PACKAGE_URL_FIELDS , "compliance_alert" )
106106 .order_by (* PACKAGE_URL_FIELDS )
107107 )
108+ licenses_qs = (
109+ project .discoveredlicenses .compliance_issues (severity = fail_level )
110+ .only ("identifier" , "compliance_alert" )
111+ .order_by ("identifier" )
112+ )
108113 resource_qs = (
109114 project .codebaseresources .compliance_issues (severity = fail_level )
110115 .only ("path" , "compliance_alert" )
@@ -113,6 +118,7 @@ def get_project_compliance_alerts(project, fail_level="error"):
113118
114119 queryset_mapping = {
115120 "packages" : package_qs ,
121+ "license_detections" : licenses_qs ,
116122 "resources" : resource_qs ,
117123 }
118124
You can’t perform that action at this time.
0 commit comments