Skip to content
Snippets Groups Projects
Commit 55e7e05b authored by jurgenhaas's avatar jurgenhaas
Browse files

Optimize audit ignore report

parent 7219a00f
No related branches found
No related tags found
1 merge request!385Merging develop into main
Pipeline #1399617 passed
......@@ -217,6 +217,18 @@ class Handler extends BaseHandler {
$report[] = $parts[3] . ': Drupal project not found';
continue;
}
if ($project['list'][0]['field_security_advisory_coverage'] === 'not-covered') {
$report[] = $parts[3] . ': Not covered by security advisory';
continue;
}
if ($project['list'][0]['taxonomy_vocabulary_44']['id'] === '13032') {
$report[] = $parts[3] . ': Not supported';
continue;
}
if ($project['list'][0]['taxonomy_vocabulary_46']['id'] === '9994') {
$report[] = $parts[3] . ': Obsolete';
continue;
}
$nid = $project['list'][0]['nid'];
$releases = json_decode($client->get('https://www.drupal.org/api-d7/node.json?type=project_release&field_release_update_status=0&field_release_category=current&field_release_project=' . $nid)->getBody(), TRUE);
if (empty($releases['list'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment