Open
Description
Get this error:
[4:11:51 PM] [semantic-release] [@semantic-release/gitlab] › ℹ Verify GitLab authentication (https://gitlab.com/api/v4)
[4:11:51 PM] [semantic-release] › ✖ Failed step "verifyConditions" of plugin "@semantic-release/gitlab"
[4:11:51 PM] [semantic-release] › ✖ EGLNOPERMISSION The GitLab token doesn't allow to push on the repository *******.
The user associated with the GitLab token (https://github.com/semantic-release/gitlab/blob/master/README.md#gitlab-authentication) configured in the GL_TOKEN or GITLAB_TOKEN environment variable must allows to push to the repository *******.
Please make sure the GitLab user associated with the token has the permission to push (https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions) to the repository *********.
This is what I get with a direct call to the gitlab API:
curl --header "Private-Token: ***********" https://gitlab.com/api/v4/projects/****
[...]
"shared_with_groups": [
{
"group_id": *****,
"group_name": "*********",
"group_full_path": "****",
"group_access_level": 40,
"expires_at": null
}
[....]
]
"permissions": {
"project_access": null,
"group_access": null
}
So, this code doesn't verify correctly the permissions:
Line 51 in cfa2f17