You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to propose a new feature: adding support for GitLab repositories in Dependency-Track, similar to the existing GithubMetaAnalyzer.
Motivation
Many organizations (ours included) host their code and internal packages on GitLab rather than GitHub.
Currently, Dependency-Track can enrich GitHub components with metadata (latest release, commit information, published timestamps), but GitLab components are treated as generic sources without metadata analysis.
Adding GitLab support would provide parity between the two platforms and extend Dependency-Track’s usefulness for enterprises using GitLab.
Proposal
Introduce a new GitlabMetaAnalyzer that:
Detects pkg:gitlab/... package URLs (similar to how GithubMetaAnalyzer detects pkg:github/...).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’d like to propose a new feature: adding support for GitLab repositories in Dependency-Track, similar to the existing
GithubMetaAnalyzer.Motivation
Proposal
Introduce a new
GitlabMetaAnalyzerthat:Detects
pkg:gitlab/...package URLs (similar to howGithubMetaAnalyzerdetectspkg:github/...).Connects to GitLab’s REST API ([GitLab API](https://docs.gitlab.com/api/)).
Determines whether the
versionin the pURL corresponds to:/projects/:id/releases)/projects/:id/repository/commits/:sha)Retrieves metadata:
GET /projects/:id/releases/latest)Implementation Sketch
Create
GitlabMetaAnalyzerextendingAbstractMetaAnalyzer.Add repository type constant:
RepositoryType.GITLAB.Implement authentication options:
Mirror the structure of
GithubMetaAnalyzer:isApplicable(Component)→ checks forPackageURL.StandardTypes.GITLABsupportedRepositoryType()→ returnsRepositoryType.GITLABget_version_type(...)→ distinguish release vs commitanalyze(Component)→ fetch metadata via GitLab APIBenefits
I’d be happy to draft an initial PR or collaborate on design if the team agrees this would be a valuable addition.
Beta Was this translation helpful? Give feedback.
All reactions