From ec9faa8a40db4e89361175b2dc52a3176caa845c Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Thu, 21 Mar 2024 19:31:24 +0100 Subject: [PATCH] feat: add reporter username to vulnerability (#782) --- lib/prepare_security.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/prepare_security.js b/lib/prepare_security.js index 72afdaa0..a0f6c3f8 100644 --- a/lib/prepare_security.js +++ b/lib/prepare_security.js @@ -160,7 +160,7 @@ class PrepareSecurityRelease { const selectedReports = []; for (const report of reports.data) { - const { id, attributes: { title, cve_ids }, relationships: { severity } } = report; + const { id, attributes: { title, cve_ids }, relationships: { severity, reporter } } = report; const link = `https://hackerone.com/reports/${id}`; const reportLevel = severity ? severity.data.attributes.rating : 'TBD'; cli.separator(); @@ -185,7 +185,8 @@ class PrepareSecurityRelease { severity: reportLevel, summary: summaryContent ?? '', affectedVersions: versions.split(',').map((v) => v.replace('v', '').trim()), - link + link, + reporter: reporter.data.attributes.username }); } return selectedReports;