Skip to content

Commit

Permalink
fix: handle when report severity is not set (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Jan 2, 2024
1 parent fa513ee commit 67fedf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare_security.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SecurityReleaseIssue {
let reportsContent = '';
for (const report of reports.data) {
const { id, attributes: { title }, relationships: { severity } } = report;
const reportLevel = severity.data.attributes.rating;
const reportLevel = severity ? severity.data.attributes.rating : 'TBD';
cli.separator();
cli.info(`Report: ${id} - ${title} (${reportLevel})`);
const include = await cli.prompt(
Expand Down

0 comments on commit 67fedf9

Please sign in to comment.