Skip to content

Differentiate vulnerability detected note

Zamir Martins requested to merge differentiate_vulnerability_detected_note into master

What does this MR do and why?

Differentiate vulnerability detected note. This also aligns the displayed time with the one on the vulnerability reports.

EE: true

Follow-up from !154268 (merged)

Related issue: #454903 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-06-06_at_16.06.12 Screenshot_2024-06-06_at_16.05.54

How to set up and validate locally

  1. Create a project with the following files

.gitlab-ci.yml

gemnasium-dependency_scanning:
  artifacts:
    reports:
      dependency_scanning: "**/gl-dependency*report.json"
    paths:
      - "**/*.json"
  dependencies: []
  script:
    - echo "dependency scanning"
  rules:

gl-dependency-scanning-report.json

gl-dependency-scanning-report.json

  1. Trigger the pipeline for the default branch.

  2. Go to Secure -> Vulnerability Reports and click in one of the existing vulnerabilities.

  3. Inspect the following Vue component:

Screenshot_2024-06-11_at_17.21.43

  1. Verify that detectedAt and scanner has been added.
Before After
Screenshot_2024-06-11_at_17.21.28 Screenshot_2024-06-11_at_17.17.16
Edited by Zamir Martins

Merge request reports