Skip to content

Commit

Permalink
feat: add reporter username to vulnerability (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Mar 21, 2024
1 parent 9a8605e commit ec9faa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/prepare_security.js
Expand Up @@ -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();
Expand All @@ -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;
Expand Down

0 comments on commit ec9faa8

Please sign in to comment.