git-vars package

Installing `git-vars` Locally

< >

Installation

Via PIP

pip install git-vars

GitLab Authentication

To authenticate with GitLab, you need an access token. This token can be created in GitLab and set using the --access-token or -t option, or by setting an environment variable using the command export GITLAB_VARIABLE_ACCESS_TOKEN=<YOUR_GITLAB_ACCESS_TOKEN>.

Creating a GitLab Access Token

  1. Go to your GitLab instance and log in.
  2. Click on your profile picture in the top right corner and select “Settings”.
  3. In the left sidebar, select “Access Tokens”.
  4. Give your token a name and select the scopes you need (e.g., read_api and write_api).
  5. Click “Create personal access token”.
  6. Copy the token value and store it securely.