Skip to content
Snippets Groups Projects
Commit 7c083271 authored by jurgenhaas's avatar jurgenhaas
Browse files

#18 Implement lakedrops:audit-ignore-report

parent c0654e29
No related branches found
No related tags found
1 merge request!251Merging develop into main
Pipeline #1278951 passed
......@@ -19,7 +19,7 @@ class AuditIgnoreReportCommand extends BaseCommand {
protected function configure(): void {
parent::configure();
$this
->setName('lakedrops:auditignorereport')
->setName('lakedrops:audit-ignore-report')
->setDescription('Report about status of all ignored CVEs during audit.');
}
......
......@@ -188,13 +188,17 @@ class Handler extends BaseHandler {
}
}
/**
* Generates a report for ignored projects during audit.
*
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function auditIgnoreReport(): void {
$audit = $this->composer->getConfig()->get('audit');
if (empty($audit['ignore'])) {
$this->io->info('There are no ignored CVEs in the configuration.');
return;
}
/** @var \GuzzleHttp\Client $client */
$client = new Client();
$ignore = $audit['ignore'];
$report = [];
......
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