Skip to content

Hosts and tokens

Public repositories on github.com and gitlab.com work without any setup, with the hosts' lower rate limits for requests without a token. Other hosts, private repositories, and GitHub's Dependabot alerts and Actions variables need a token:

  1. Create a read-only token for the host:
  2. Add the token as a "Git host token" key at Configuration > System > Keys (/admin/config/system/keys), with the provider and host, as Git Host's README describes. The Git Host module reads from the hosts for this module, and only sends each token to its own host.

Adding a key with a new host adds it to the hosts the field accepts. Removing a key stops its repositories' data from showing, with a "No key is set up" message instead.