Skip to content

Store and expose Licenses

Philippe Lafoucrière requested to merge store_licenses into main

Now that gitlab-org/gitlab!90754 (merged) is merged, licenses are exposed via the Dependencies API endpoint.

This MR adds support for these licenses in GIB.

Licenses are now stored in the dependencies table of the database, in a TEXT column that can be casted to json to query them.

A new licences table is added to the DB, only storing the name and the URL of the licenses. We will store more fields maybe in the future.

refs #40

Merge request reports