Skip to main content
Version: 23.1

Git configuration

Private Git hosting services

Nextflow has built-in support for public and private Git repositories and services, such as Bitbucket, GitHub and GitLab. To access private repositories, provide your security credentials using either the Tower application interface, or the following keys in the tower.yml file:

tower.env

TOWER_SCM_PROVIDERS_GITHUB_USER=<YOUR GITHUB USER NAME>
TOWER_SCM_PROVIDERS_GITHUB_PASSWORD=<YOUR GITHUB ACCESS TOKEN OR PASSWORD>
TOWER_SCM_PROVIDERS_GITLAB_USER=<YOUR GITLAB USER NAME>
TOWER_SCM_PROVIDERS_GITLAB_PASSWORD=<YOUR GITLAB PASSWORD>
TOWER_SCM_PROVIDERS_GITLAB_TOKEN=<YOUR GITLAB TOKEN>
TOWER_SCM_PROVIDERS_BITBUCKET_USER=<YOUR BITBUCKET USER NAME>
TOWER_SCM_PROVIDERS_BITBUCKET_PASSWORD=<YOUR BITBUCKET TOKEN OR PASSWORD>

tower.yml
tower:
scm:
providers:
github:
user: <YOUR GITHUB USER NAME>
password: <YOUR GITHUB ACCESS TOKEN OR PASSWORD>
gitlab:
user: <YOUR GITLAB USER NAME>
password: <YOUR GITLAB PASSWORD>
token: <YOUR GITLAB TOKEN>
bitbucket:
user: <YOUR BITBUCKET USER NAME>
password: <YOUR BITBUCKET TOKEN OR PASSWORD>

See the documentation for each provider to learn how to create security access tokens: