Skip to content

Allow use of Gitlab Project Access Tokens #333

@alexifm

Description

@alexifm

Description

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

https://github.com/relekang/python-semantic-release/blob/20d79a51bffa26d40607c1b77d10912992279112/semantic_release/vcs_helpers.py#L230

Possible implementation

  1. Look for an optional GITLAB_BOT_USER environment variable so the project access tokens are entirely optional
  2. 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}_bot where CI_PROJECT_ID is a predefined environment variable available in the Gitlab jobs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedPrevent from becoming stalefeatureA new feature or a feature requestneeds-updateNeeds status update from maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy