diff --git a/lib/prepare_security.js b/lib/prepare_security.js index 68a7d942..304319ca 100644 --- a/lib/prepare_security.js +++ b/lib/prepare_security.js @@ -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(