Loading
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
- Closes #629820 (closed)
- Investigation: #629820 (comment 4004610173)
- Design for the icon placement: #627681 (comment 3854867281)
- Same icon in the Vulnerability Details header, follow-up: #629552 (closed)
Screenshots or screen recordings
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:
- 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.
- Create a tag, then track a non-default branch and the tag. See Track an additional context.
- Run a pipeline on the branch and on the tag.
- Navigate to the Project > Secure > Vulnerability report.
- 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.
- With VoiceOver on, move to a row's ref line. It reads "Branch" or "Tag" before the ref name.
- 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





