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
Without the @semantic-release/git module it is working fine. The tag is created and pushed to the master branch.
But it seems the module cannot push the assets to the master branch.
[1:04:43 PM] [semantic-release] [@semantic-release/git] › ℹ Found 1 file(s) to commit
[1:04:44 PM] [semantic-release] › ✘ Failed step "prepare" of plugin "@semantic-release/git"
[1:04:44 PM] [semantic-release] › ✘ An error occurred while running semantic-release: Error: Command failed with exit code 1: git push --tags https://gitlab-ci-token:[secure]@mygitlab.com/myproject.git HEAD:master
remote: GitLab: You are not allowed to push code to protected branches on this project.
Adding a printenv in the script I can see my GITLAB_TOKEN variable with my token.
But I don't understand if it's really possible to push to master with a personal access token ?
I also tried removing the GITLAB_TOKEN from the project variable and adding
But it is still not working (with another reason).
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 be a valid personal access token
I don't want to unprotect my master branch. So what's the solution ?
The text was updated successfully, but these errors were encountered:
unfortunately, the CI_JOB_TOKEN does not provide the ability to push code. see semantic-release/semantic-release#1729 for more discussion about that situation
Without the @semantic-release/git module it is working fine. The tag is created and pushed to the master branch. But it seems the module cannot push the assets to the master branch.
you need to verify the permissions you've granted to your token. you need to use a token that provides the appropriate level of access. it appears that the one you are using does not provide the ability to push code to a protected branch
I have a protected master branch on my gitlab project
I'm using that Docker image
and I'm using that config
Without the @semantic-release/git module it is working fine. The tag is created and pushed to the master branch.
But it seems the module cannot push the assets to the master branch.
Adding a printenv in the script I can see my GITLAB_TOKEN variable with my token.
But I don't understand if it's really possible to push to master with a personal access token ?
I also tried removing the GITLAB_TOKEN from the project variable and adding
Now the printenv still show me the variable
But it is still not working (with another reason).
I don't want to unprotect my master branch. So what's the solution ?
The text was updated successfully, but these errors were encountered: