You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "abeizn (via GitHub)" <gi...@apache.org> on 2023/03/24 10:08:08 UTC
[GitHub] [incubator-devlake] abeizn commented on a diff in pull request #4759: Gitlab token check
abeizn commented on code in PR #4759:
URL: https://github.com/apache/incubator-devlake/pull/4759#discussion_r1147370210
##########
backend/plugins/gitlab/api/connection.go:
##########
@@ -49,11 +51,24 @@ func TestConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput,
return nil, err
}
- _, err = api.NewApiClientFromConnection(context.TODO(), basicRes, &connection)
+ apiClient, err := api.NewApiClientFromConnection(context.TODO(), basicRes, &connection)
if err != nil {
return nil, err
}
+ // check API/read_api permissions
Review Comment:
https://devlake.apache.org/docs/next/Configuration/GitLab

Does this also verify read_user and read_repository permission?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org