Add branch and tag icons to Vulnerability Report refs

What does this MR do and why?

Adds a branch or tag icon before the tracked ref name in each row of the project Vulnerability Report, so users can tell which kind of ref the vulnerability is on. Screen readers announce "Branch" or "Tag" before the name. Not behind a feature flag.

Changes

  • Project Vulnerability Report rows show a branch or tag icon before the tracked ref name
  • Screen-reader-only text says whether the ref is a branch or a tag
  • The project vulnerabilities query also fetches the ref type
  • Group, instance, and pipeline reports are unchanged. They don't show the ref line
  • Updated the related specs

References

Screenshots or screen recordings

# Scenario Before After Result
P1 Project report, row on a tracked branch P1 before P1 after Branch icon before vac-test.
P2 Project report, row on a tracked tag P2 before P2 after Tag icon before vac-tag-test.
P3 Screen-reader text on a row's ref line n/a Reads "Branch vac-test" and "Tag vac-tag-test" "Branch" or "Tag" is read before the ref name, and hidden on screen.
G1 Group report, any row G1 before G1 after Same: no ref line in both.

P = project Vulnerability Report, G = group Vulnerability Report.

How to set up and validate locally

Prerequisites:

  • GDK with advanced search, which the tracked ref filter needs. See Requirements.

Steps:

  1. Use a project with SAST in CI and at least one SAST finding. For example, import https://gitlab.com/gl-demo-ultimate-sming/vac-agentic-security-flows/sast-vr-automation.
  2. Create a tag, then track a non-default branch and the tag. See Track an additional context.
  3. Run a pipeline on the branch and on the tag.
  4. Navigate to the Project > Secure > Vulnerability report.
  5. In the Tracked ref filter, select All tracked refs. Rows on a branch show the branch icon before the ref name, and rows on the tag show the tag icon.
  6. With VoiceOver on, move to a row's ref line. It reads "Branch" or "Tag" before the ref name.
  7. Open the group Vulnerability Report. Rows don't show a ref line, same as before.

MR acceptance checklist

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

Edited by Samantha Ming

Merge request reports

Loading
Loading