Skip to content

Commit

Permalink
change ordering of information (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemberTang authored Mar 22, 2024
1 parent 6124d84 commit 666aa82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ describe('createDigest', () => {
Displaying the top 1 most urgent.
Note: DevX only aggregates vulnerability information for repositories with a production topic.
**leftpad** contains a [HIGH vulnerability](example.com).
Introduced to [guardian/repo](https://github.com/guardian/repo) on Sun Jan 01 2023 via pip.
[guardian/repo](https://github.com/guardian/repo) contains a [HIGH vulnerability](example.com).
Introduced via **leftpad** on Sun Jan 01 2023, from pip.
This vulnerability is patchable.`,
});
});
Expand Down
4 changes: 2 additions & 2 deletions packages/repocop/src/remediation/vuln-digest/vuln-digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function createHumanReadableVulnMessage(vuln: RepocopVulnerability): string {
const ecosystem =
vuln.ecosystem === 'maven' ? 'sbt or maven' : vuln.ecosystem;

return String.raw`**${vuln.package}** contains a [${vuln.severity.toUpperCase()} vulnerability](${vuln.urls[0]}).
Introduced to [${vuln.fullName}](https://github.com/${vuln.fullName}) on ${dateString} via ${ecosystem}.
return String.raw`[${vuln.fullName}](https://github.com/${vuln.fullName}) contains a [${vuln.severity.toUpperCase()} vulnerability](${vuln.urls[0]}).
Introduced via **${vuln.package}** on ${dateString}, from ${ecosystem}.
This vulnerability ${vuln.isPatchable ? 'is ' : 'may *not* be '}patchable.`;
}

Expand Down

0 comments on commit 666aa82

Please sign in to comment.