WATCH_SCRIPT_GIT_REPO is set, Watch clones the repository, loads .ws rule files from it, and keeps the local copy in sync.
For additional Watch settings, see Watch configuration.
.env
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure Git-based rule loading for your Watch service.
WATCH_SCRIPT_GIT_REPO is set, Watch clones the repository, loads .ws rule files from it, and keeps the local copy in sync.
For additional Watch settings, see Watch configuration.
WATCH_SCRIPT_GIT_REPO=
WATCH_SCRIPT_GIT_BRANCH=main
WATCH_SCRIPT_GIT_USERNAME=x-access-token
WATCH_SCRIPT_GIT_TOKEN=
| Environment variable | Description |
|---|---|
WATCH_SCRIPT_GIT_REPO | Git repository URL containing Watch rule files. When set, Watch loads rules from this repository instead of relying only on local files. |
WATCH_SCRIPT_GIT_BRANCH | Git branch Watch tracks when WATCH_SCRIPT_GIT_REPO is set. Use the branch that contains the rules for this deployment. |
WATCH_SCRIPT_GIT_USERNAME | Username used to authenticate when cloning a private rules repository over HTTPS. Defaults to x-access-token when unset. |
WATCH_SCRIPT_GIT_TOKEN | Personal access token or password used with WATCH_SCRIPT_GIT_USERNAME for private repository access. Store this as a secret. |
Was this page helpful?