Environment variables
| Variable | Effect |
|---|---|
RELGAP_CONFIG | Config file to read instead of the discovered project file, as --config does. |
RELGAP_<KEY> | Sets a config key; the configuration page names the variable of each key. An unknown RELGAP_ variable is ignored with a warning. |
GH_TOKEN | GitHub token, tried first. Without a token relgap reads gh's config file, then runs gh auth token, and otherwise sends unauthenticated requests (60 per hour). |
GITHUB_TOKEN | GitHub token, tried when GH_TOKEN is not set. |
BITBUCKET_API_TOKEN | Bitbucket Cloud API token or access token, sent as Bearer to api.bitbucket.org only. Without it relgap sends anonymous requests (60 per hour per IP). |
GITLAB_TOKEN | GitLab token, sent in PRIVATE-TOKEN only to the host in GITLAB_HOST (default gitlab.com), unless a gitlab.hosts entry names its own token_env. |
GITLAB_ACCESS_TOKEN | GitLab token, tried when GITLAB_TOKEN is not set. |
GITLAB_HOST | The GitLab host that GITLAB_TOKEN belongs to; default gitlab.com. |
CI_JOB_TOKEN | GitLab CI job token, sent in JOB-TOKEN only to CI_SERVER_HOST, when that host has no other token. |
CI_SERVER_HOST | The GitLab host CI_JOB_TOKEN belongs to; GitLab CI sets it. |
ANTHROPIC_API_KEY | API key for --summarize with the anthropic provider when llm.api_key_env is empty. |
AWS_* | The AWS SDK reads its usual variables for --summarize with the bedrock provider, such as AWS_REGION and AWS_PROFILE. |
GITHUB_REPOSITORY | Repository for the github-pr-comment notifier when the config names none. |
GITHUB_API_URL | GitHub API URL for the github-pr-comment notifier when the config names none. |
GITHUB_EVENT_PATH | Event file that digest --pull-request and github-pr-comment read the pull request from in GitHub Actions. |
HOME | Home directory: the config and cache directories, the go command's settings file, and mise's data directory for outdated --binaries. |
XDG_CONFIG_HOME | Base of the user config file, $XDG_CONFIG_HOME/relgap/config.yaml, and of the go command's settings file, $XDG_CONFIG_HOME/go/env, on Linux. |
GOPRIVATE | Go module path patterns that never reach OSV, as the go command keeps them from its proxy and checksum database. Read like the go command does: the variable, else the go env file. |
GONOPROXY | More Go module path patterns that never reach OSV; defaults to GOPRIVATE. |
GONOSUMDB | More Go module path patterns that never reach OSV; defaults to GOPRIVATE. |
GOENV | The go command's settings file that GOPRIVATE, GONOPROXY and GONOSUMDB are read from when the variables are empty; off reads none. Default: go/env in the user config directory. |
APPDATA | The user config directory on Windows, where the go command's settings file is. |
XDG_CACHE_HOME | Base of the cache directory: $XDG_CACHE_HOME/relgap. |
XDG_DATA_HOME | Base of mise's data directory for outdated --binaries when MISE_DATA_DIR is not set. |
MISE_DATA_DIR | mise's data directory, whose installs outdated --binaries looks at. |
NO_COLOR | Turns color off with --color auto when set to anything but an empty string. |
CLICOLOR_FORCE | Turns color on with --color auto, even when output is not a terminal, unless it is 0 or NO_COLOR is set. |
FORCE_COLOR | Turns color on like CLICOLOR_FORCE unless it is 0 or false. |
CLICOLOR | Set to 0, turns color off with --color auto. |
TERM | Set to dumb, turns color off with --color auto. |
COLUMNS | Width in columns that tty output wraps notes and release-note entries at; default: the terminal's width. |
PATH | Where outdated --binaries looks for installed tools, and where mise, gh and git are looked up. |
PATHEXT | File extensions of programs on Windows, for the same lookup. |
Child processes
A child process, such as terraform, starts with only these variables from relgap's environment, plus the ones the command sets for it. A * matches any suffix.
PATH, HOME, USER, LOGNAME, SHELL, TMPDIR, TEMP, TMP, TZ, TERM, LANG, LC_*, XDG_*, HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy, SSL_CERT_FILE, SSL_CERT_DIR, AWS_*, TF_*, TG_*, TERRAGRUNT_*, TOFU_*, OPENTOFU_*, MISE_*, GIT_*, SSH_AUTH_SOCK, SYSTEMROOT, SystemRoot, COMSPEC, PATHEXT, WINDIR, APPDATA, LOCALAPPDATA, USERPROFILE, PROGRAMDATA, ProgramFiles, ProgramFiles(x86)