Skip to content

Commit

Permalink
fix: Severity of vuln correctly reported (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-chappell authored Feb 11, 2025
1 parent a9b8828 commit 9631664
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function createHumanReadableVulnMessage(vuln: RepocopVulnerability): string {

const cveHyperlink = vuln.cves[0] ?? 'no CVE provided';

return String.raw`[${removeRepoOwner(vuln.full_name)}](https://github.com/${vuln.full_name}) contains a high severity vulnerability, ${cveHyperlink}, from ${vulnHyperlink}, introduced via ${ecosystem}.
return String.raw`[${removeRepoOwner(vuln.full_name)}](https://github.com/${vuln.full_name}) contains a ${vuln.severity} severity vulnerability, ${cveHyperlink}, from ${vulnHyperlink}, introduced via ${ecosystem}.
There are ${daysToFix} days left to fix this vulnerability. It ${vuln.is_patchable ? 'is ' : 'might not be '}patchable.`;
}

Expand Down

0 comments on commit 9631664

Please sign in to comment.