Support model 15 of the schemas
What does this MR do?
Change fields of the Vulnerability struct type so that analyzers can generate reports that validate version 15-0-0 of the Security Report Schemas.
- Change
Vulnerability.Scannerto a pointer, and setomitempty. - Set
omitemptyforVulnerability.Category. - Set
omitemptyforVulnerability.CompareKey. - Set
omitemptyforRef.CompareKey. - Document
Category,Message, andConfidenceas deprecated. - Release new minor version of
report. This is a transition version, and the major version doesn't change.
What are the relevant issue numbers?
gitlab-org/gitlab#368140 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Ensure the report version matches the equivalent schema version -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Lucas Charles