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
When bootstrapping flux with GitLab, it needs to perform various actions on the GitLab instance:
Creating a repository (if it doesn't exist, yet)
Adding a deployment key
During these operations, it will try to find the correct GitLab project using the GitLab API. With the current implementation, the search is restricted to return only groups with an access level >= 10.
When using a project access token in gitlab (from a repository that has already been manually created), the gitlab API will not list project parent groups if search is performed with access level >= 10. This will cause the bootstrapping to fail:
ubuntu@myhost:~$ flux bootstrap gitlab \
> --owner=mygroup/mysubgroup \
> --repository=myrepo
✗ failed to list projects, error: failed to find group named 'mygroup/mysubgroup'
When bootstrapping flux with GitLab, it needs to perform various actions on the GitLab instance:
During these operations, it will try to find the correct GitLab project using the GitLab API. With the current implementation, the search is restricted to return only groups with an access level >= 10.
When using a project access token in gitlab (from a repository that has already been manually created), the gitlab API will not list project parent groups if search is performed with access level >= 10. This will cause the bootstrapping to fail:
The relevant code sections are:
Solution
The requirement on the access level can simply be omitted. The GitLab API will only list projects/groups the provided token can see.
The text was updated successfully, but these errors were encountered: