Skip to content

Refactor AffectedVersionRangeMatcher class

Aditya Tiwari requested to merge 427953-refactor-version-range-matcher into master

What does this MR do and why?

Container Scanning advisories contain extra data compared to Dependency Scanning advisories, such as distro. Because of this, the current Gitlab::VulnerabilityScanning::AffectedVersionRangeMatcher#affected? is not sufficient to handle Container Scanning advisories.

The purpose of this mr is to refactor the Gitlab::VulnerabilityScanning::AffectedVersionRangeMatcher class so it works with both Dependency and Container Scanning advisories.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #427953 (closed)

Auto-Summary 🤖

Discoto Usage

Points

Discussion points are declared by headings, list items, and single lines that start with the text (case-insensitive) point:. For example, the following are all valid points:

  • #### POINT: This is a point
  • * point: This is a point
  • + Point: This is a point
  • - pOINT: This is a point
  • point: This is a **point**

Note that any markdown used in the point text will also be propagated into the topic summaries.

Topics

Topics can be stand-alone and contained within an issuable (epic, issue, MR), or can be inline.

Inline topics are defined by creating a new thread (discussion) where the first line of the first comment is a heading that starts with (case-insensitive) topic:. For example, the following are all valid topics:

  • # Topic: Inline discussion topic 1
  • ## TOPIC: **{+A Green, bolded topic+}**
  • ### tOpIc: Another topic

Quick Actions

Action Description
/discuss sub-topic TITLE Create an issue for a sub-topic. Does not work in epics
/discuss link ISSUABLE-LINK Link an issuable as a child of this discussion

Last updated by this job

Discoto Settings
---
summary:
  max_items: -1
  sort_by: created
  sort_direction: ascending

See the settings schema for details.

Edited by Aditya Tiwari

Merge request reports