Skip to content

Commit

Permalink
feat: display cve severity on reporter (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Sep 17, 2024
1 parent 26d65ea commit 0d46ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function getVulnerabilityList (currentVersion, data, platform) {
!satisfies(currentVersion, vuln.patched)
) && isSystemAffected(platform, vuln.affectedEnvironments)
) {
list.push(`${bold(vuln.cve)}: ${vuln.overview}\n${bold('Patched versions')}: ${vuln.patched}`)
list.push(`${bold(vuln.cve)}(${vuln.severity}): ${vuln.overview}\n${bold('Patched versions')}: ${vuln.patched}`)
}
}
return list
Expand Down

0 comments on commit 0d46ea8

Please sign in to comment.