Skip to content

Commit

Permalink
fix: fix post-release dependency updates generation (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Jan 19, 2025
1 parent ea47a00 commit 69e7bfa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/security_blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,8 @@ export default class SecurityBlog extends SecurityRelease {
if (Object.keys(dependencyUpdates).length === 0) return '';
let template = '\nThis security release includes the following dependency' +
' updates to address public vulnerabilities:\n';
for (const dependencyUpdate of Object.values(dependencyUpdates)) {
for (const dependency of dependencyUpdate) {
const title = dependency.title.substring(dependency.title.indexOf(':') + ':'.length).trim();
template += `- ${title}\
on ${dependency.affectedVersions.join(', ')}\n`;
}
for (const [dependency, { versions, affectedVersions }] of Object.entries(dependencyUpdates)) {
template += `- ${dependency} (${versions.join(', ')}) on ${affectedVersions.join(', ')}\n`;
}
return template;
}
Expand Down

0 comments on commit 69e7bfa

Please sign in to comment.