Error: Command failed with exit code 128: git push. main remote: You are not allowed to upload code.
See original GitHub issueLog:
2022-10-15T13:44:58.833Z semantic-release:get-git-auth-url Verifying ssh auth by attempting to push to [https://gitlab-ci-token:[secure]@gitlab.com/anton_patsev/terraform-yandex-compute.git](https://gitlab-ci-token:%5Bsecure%5D@gitlab.com/anton_patsev/terraform-yandex-compute.git)
2022-10-15T13:44:59.194Z semantic-release:git Error: Command failed with exit code 128: git push --dry-run --no-verify [https://gitlab-ci-token:[secure]@gitlab.com/anton_patsev/terraform-yandex-compute.git](https://gitlab-ci-token:%5Bsecure%5D@gitlab.com/anton_patsev/terraform-yandex-compute.git) HEAD:main
remote: You are not allowed to upload code.
fatal: unable to access '[https://gitlab-ci-token:[secure]@gitlab.com/anton_patsev/terraform-yandex-compute.git/'](https://gitlab-ci-token:%5Bsecure%5D@gitlab.com/anton_patsev/terraform-yandex-compute.git/'): The requested URL returned error: 403
Source code https://gitlab.com/anton_patsev/terraform-yandex-compute .gitlab-ci.yml:
stages:
- release
release:
image: node:16-buster-slim
stage: release
variables:
GITLAB_TOKEN: $GITLAB_TOKEN
interruptible: true
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install
script:
- npx semantic-release --debug
only:
- main
.releaserc.json:
{
"branches": ["main"],
"ci": false,
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
package.json:
{
"name": "semantic-release",
"dependencies": {
"@semantic-release/changelog":"6.0.1",
"@semantic-release/commit-analyzer":"9.0.2",
"@semantic-release/git":"10.0.1",
"@semantic-release/gitlab":"9.4.2",
"@semantic-release/release-notes-generator":"10.0.3",
"semantic-release":"19.0.5"
}
}
I created token:
Add TOKEN to Settings > CI/CD > Variables
Full log https://gitlab.com/anton_patsev/terraform-yandex-compute/-/jobs/3178193211
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to solve the "remote: You are not allowed to upload code ...
Try configuring your gitlab-ci.yml file to push the changes rather than trying to do it from the python file.
Read more >Git auth check fails on GitLab with "remote: You are not ...
Git auth check fails on GitLab with "remote: You are not allowed to upload ... Error: Command failed with exit code 128: git...
Read more >Remote: You are not allowed to upload code. 403
I'm the maintainer, I've uploaded, pushed changed code. ... I'm working on Win10, using the push command button, provided by VCode.
Read more >semantic-release/semantic-release - Gitter
Here in my company we use GitHub Registry instead of NPMJs. ... semantic-release:git Error: Command failed with exit code 128: git push --dry-run ......
Read more >Build Azure Repos Git repositories - Azure Pipelines
batch is not supported in repository resource triggers. To clarify this example, let us say that a push A to master caused the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@patsevanton To me it looks like this is the expected behavior, and your job seems to be working. Feel free to open an issue in https://github.com/semantic-release/git if something is not working for you.
i have the same problem.
I’ve defined GL_TOKEN variable
the error log like this