Allow use of Gitlab Project Access Tokens
See original GitHub issueDescription
This is a relatively new feature of Gitlab where you can create a project access token that further creates a bot user that allows you to interact with the git repo and gitlab API. See more here: https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#project-access-tokens
I’m trying to use it but I think the problem is the Git username for Gitlab is hardcoded
Possible implementation
- Look for an optional
GITLAB_BOT_USERenvironment variable so the project access tokens are entirely optional - Or, make everyone migrate to project access tokens for Gitlab and force an “actor” to be specified like is currently done for Github. Or just default to the format that Gitlab says:
project_{CI_PROJECT_ID}_botwhereCI_PROJECT_IDis a predefined environment variable available in the Gitlab jobs.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Project access tokens - GitLab Docs
Enable or disable project access token creation · On the top bar, select Main menu > Groups and find your group. · On...
Read more >Project access tokens · Settings - Help · GitLab - ETSI Forge
Log in to GitLab. · Navigate to the project you would like to create an access token for. · In the Settings menu...
Read more >Access GitLab repo with project access token - Stack Overflow
With Git, when using HTTP Basic Authentication, use: Any non-blank value as a username. The project access token as the password.
Read more >Project access tokens · Settings · Project · User · Help · GitLab
Enable or disable project access token creation · On the top bar, select Main menu > Groups and find your group. · On...
Read more >Using GitLab Access Tokens effectively - Eficode
Global. Deploy token. Grants global admin permissions for all repositories for reading. ; Project and Group. Trigger tokens. Allows CI/CD ...
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

@alexifm You can actually use the access token by overriding the remote URL, although I agree it would be nice to have a feature integrated within
python-semantic-releaseto make this cleaner. For example, I can use a project access token by running this:git remote set-url origin https://root:$ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.gitNow my
semantic-release publishwill commit using the token.This feature request has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.