Add CVSS data to vulnerabilities GraphQL API
We currently store CVSS information in the DB but only expose it via the vulnerability export. This change exposes the CVSS information via `VulnerabilityType` in GraphQL. In addition to exposing the vector, we also expose computed values for each vector string, including the CVSS version, base score, overall score, and severity. Changelog: added EE: true
显示
- doc/api/graphql/reference/index.md 28 个添加, 0 个删除doc/api/graphql/reference/index.md
- ee/app/graphql/types/vulnerabilities/cvss_severity_enum.rb 16 个添加, 0 个删除ee/app/graphql/types/vulnerabilities/cvss_severity_enum.rb
- ee/app/graphql/types/vulnerabilities/cvss_type.rb 41 个添加, 0 个删除ee/app/graphql/types/vulnerabilities/cvss_type.rb
- ee/app/graphql/types/vulnerability_type.rb 3 个添加, 0 个删除ee/app/graphql/types/vulnerability_type.rb
- ee/spec/graphql/types/vulnerabilities/cvss_type_spec.rb 11 个添加, 0 个删除ee/spec/graphql/types/vulnerabilities/cvss_type_spec.rb
- ee/spec/graphql/types/vulnerability_type_spec.rb 35 个添加, 1 个删除ee/spec/graphql/types/vulnerability_type_spec.rb
加载中
想要评论请 注册 或 登录