Skip to content

Commit 67fedf9

Browse files
authored
fix: handle when report severity is not set (#765)
1 parent fa513ee commit 67fedf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prepare_security.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SecurityReleaseIssue {
7878
let reportsContent = '';
7979
for (const report of reports.data) {
8080
const { id, attributes: { title }, relationships: { severity } } = report;
81-
const reportLevel = severity.data.attributes.rating;
81+
const reportLevel = severity ? severity.data.attributes.rating : 'TBD';
8282
cli.separator();
8383
cli.info(`Report: ${id} - ${title} (${reportLevel})`);
8484
const include = await cli.prompt(

0 commit comments

Comments
 (0)