Skip to content

Add sbt, nuget, Go to Dependencies API

What does this MR do and why?

Add sbt, go, and nuget to the package managers supported by the List project dependencies endpoint of the Dependencies API. Prior to that change, setting the package_manager parameter to any of these value caused a validation error.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Call the Project dependency list endpoint and set the package_manager parameter to go, nuget, and/or sbt.

GET /projects/:id/dependencies?package_manager=go,nuget,sbt

Where :id is the ID of a GitLab project where the Dependency Scanning feature is available (Ultimate). This can be tested in a project that doesn't have Go, Nuget, or Sbt dependencies.

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 #339012 (closed)

Edited by Fabien Catteau

Merge request reports