Skip to content

Make sure that `vulnerabilities` is always defined in the Dependency List

What does this MR do?

This fixes a bug where we tried to access vulnerabilities.length in dependencies objects even when vulnerabilities doesn't exist, which would happen when the user is authorized to see the dependencies list but not the associated vulnerabilities.

How to test this?

  1. Make sure you have a public project with dependency scanning setup that has some entries in Security & Compliance > Dependency List.
  2. Open a new window in incognito mode and navigate to the project's Security & Compliance > Dependency List page.

Screenshots

Before After
image image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports