Improve consistency of vulnerability name, message in Dependency Scanning
Follow-up for https://gitlab.com/gitlab-org/gitlab-ee/issues/5908
In the Dependency Scanning (DS) reports,
message and name both give a short description of the vulnerability (some kind of title)
with this distinction:
-
messagemust include the name of the package. -
namemust be "location free".
If the scanner returns a title with package name (bundler-audit) then:
-
messageis set to the title. -
nameis left empty.
If the scanner returns a title with NO package name (gemnasium, retire.js) then:
-
messageis set to{title} in {package_name}. -
nameis set to the title.
If the scanner returns NO title then (retire.js in some cases):
-
messageis set toVulnerability in {package_name}. -
nameis left empty.
We assume that the package name is always known.
We may implement these rules in the common library to enforce consistency.
Edited by Fabien Catteau