Skip to main content
Configure Git-based rule loading for your Watch service. When 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
WATCH_SCRIPT_GIT_REPO=
WATCH_SCRIPT_GIT_BRANCH=main
WATCH_SCRIPT_GIT_USERNAME=git
WATCH_SCRIPT_GIT_TOKEN=
Environment variableDescription
WATCH_SCRIPT_GIT_REPOGit repository URL containing Watch rule files. When set, Watch loads rules from this repository instead of relying only on local files.
WATCH_SCRIPT_GIT_BRANCHGit branch Watch tracks when WATCH_SCRIPT_GIT_REPO is set. Use the branch that contains the rules for this deployment.
WATCH_SCRIPT_GIT_USERNAMEUsername used to authenticate when cloning a private rules repository over HTTPS.
WATCH_SCRIPT_GIT_TOKENPersonal access token or password used with WATCH_SCRIPT_GIT_USERNAME for private repository access. Store this as a secret.