Skip to content

Configuring the release history server

  1. Create a GitHub token with read-only access to the repositories' contents, such as a fine-grained personal access token with the "Contents: Read-only" repository permission.
  2. Add the token as a key at Configuration > System > Keys (/admin/config/system/keys), with the "Authentication" key type. Key's providers keep it out of the site's exported configuration: for example, the "Environment" provider reads it from an environment variable, and the "File" provider from a file outside the web root.
  3. Go to Configuration > Web services > GitHub Release History (/admin/config/services/github-release-history), and select the key as the GitHub token.
  4. On the same page, list the repositories the server may serve, one per line, as owner/name, or owner/* for all of an owner's repositories. Names aren't case-sensitive. Nothing is allowed until you add repositories, and requests for other repositories are denied, so the token can't be used to read anything else.

The status report (Reports > Status report) shows whether the token is missing or invalid.

The server then answers anonymous requests at:

https://<server>/github-release-history/<owner>/<repository>/current

Open that URL in a browser to check a repository: it shows the release history XML, or "Access denied" if the repository isn't allowed.