Installing `git-vars` Locally

git-vars package

Installation

Via PIP

pip install git-vars==0.0.6

GitLab Authentication

To authenticate with GitLab, you need a personal access token. Pass it with the --access-token or -t option, or enter it when you run git-vars configure. Version 0.0.6 does not read a GITLAB_VARIABLE_ACCESS_TOKEN environment variable.

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 api scope. GitLab does not provide a write_api personal access token scope.
  5. Click “Create personal access token”.
  6. Copy the token value and store it securely.

Security note: git-vars configure stores the token as plaintext in ~/.git-vars. Restrict the file to your account with chmod 600 ~/.git-vars, never commit it, and revoke the token when it is no longer needed.

Optional feedback