Skip to content

[Refactor][sonarqube] Can you please change API used to obtain SonarQube projects list for user rights issue #8514

@netvetra

Description

@netvetra

What and why to refactor

It seems that the code is using /api/projects/search to obtain the project list in SonarQube, which requires system admin right.

Describe the solution you'd like

Replace with /api/components/search_projects endpoint works without admin rights.

Related issues

N/A

Additional context

incubator-devlake/backend/plugins/sonarqube/api/blueprint_v200.go
line 134:
res, err := apiClient.Get("projects/search", query, nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions