Skip to content

Commit

Permalink
fix: add created_at value to json
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Mar 22, 2024
1 parent 026a565 commit eed3e31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/prepare_security.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class PrepareSecurityRelease {

for (const report of reports.data) {
const {
id, attributes: { title, cve_ids },
id, attributes: { title, cve_ids, created_at },
relationships: { severity, weakness, reporter }
} = report;
const link = `https://hackerone.com/reports/${id}`;
Expand Down Expand Up @@ -199,7 +199,8 @@ class PrepareSecurityRelease {
summary: summaryContent ?? '',
affectedVersions: versions.split(',').map((v) => v.replace('v', '').trim()),
link,
reporter: reporter.data.attributes.username
reporter: reporter.data.attributes.username,
created_at // when we request CVE we need to input vulnerability_discovered_at
});
}
return selectedReports;
Expand Down

0 comments on commit eed3e31

Please sign in to comment.