semantic-release: Vault integration does not work as intended
In !567 (merged) we added logic that aimed to use the $SEMANTIC_RELEASE_GITLAB_TOKEN
variable if present, and otherwise default to using a token stored in Vault. Unfortunately, this does not work as intended:
[10:08:34 AM] [semantic-release] › ✘ The command "git push --dry-run --no-verify https://gitlab-ci-token:[secure]@gitlab.com/gitlab-com/gl-infra/platform/runway/example-service.git HEAD:main" failed with the error message remote: You are not allowed to push code to this project.
fatal: unable to access 'https://gitlab.com/gitlab-com/gl-infra/platform/runway/example-service.git/': The requested URL returned error: 403.
[10:08:34 AM] [semantic-release] › ℹ Start step "fail" of plugin "@semantic-release/gitlab"
[10:08:34 AM] [semantic-release] › ✘ Failed step "fail" of plugin "@semantic-release/gitlab"
[10:08:34 AM] [semantic-release] › ✘ An error occurred while running semantic-release: AggregateError:
SemanticReleaseError: No GitLab token specified.