From 2d4fced8b5c102c1e6ab94ae51efa1b3fb5e9d14 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Tue, 19 Mar 2024 16:22:05 +0100 Subject: [PATCH] feat: add link to title and to json (#781) --- lib/prepare_security.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/prepare_security.js b/lib/prepare_security.js index 35e6b15d..04fad2ad 100644 --- a/lib/prepare_security.js +++ b/lib/prepare_security.js @@ -160,9 +160,10 @@ class PrepareSecurityRelease { for (const report of reports.data) { const { id, attributes: { title, cve_ids }, relationships: { severity } } = report; + const link = `https://hackerone.com/reports/${id}`; const reportLevel = severity ? severity.data.attributes.rating : 'TBD'; cli.separator(); - cli.info(`Report: ${id} - ${title} (${reportLevel})`); + cli.info(`Report: ${link} - ${title} (${reportLevel})`); const include = await cli.prompt( 'Would you like to include this report to the next security release?', { defaultAnswer: true }); @@ -182,7 +183,8 @@ class PrepareSecurityRelease { cve_ids, severity: reportLevel, summary: summaryContent ?? '', - affectedVersions: versions.split(',').map((v) => v.replace('v', '').trim()) + affectedVersions: versions.split(',').map((v) => v.replace('v', '').trim()), + link }); } return selectedReports;