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
- Go to your GitLab instance and log in.
- Click on your profile picture in the top right corner and select “Settings”.
- In the left sidebar, select “Access Tokens”.
- Give your token a name and select the
apiscope. GitLab does not provide awrite_apipersonal access token scope. - Click “Create personal access token”.
- Copy the token value and store it securely.
Security note:
git-vars configurestores the token as plaintext in~/.git-vars. Restrict the file to your account withchmod 600 ~/.git-vars, never commit it, and revoke the token when it is no longer needed.