GitLab provides a secure way to create deploy tokens and activate them for only a single Git repository with specific actions on that repository.

Create a new read-only GitLab deploy token to provide access to Edge Compute Stack hosts to the Git repository.

Prerequisites

Create a Git repository. For details, see the topic Creating a Git Repository in GitLab.

Procedure

  1. Go to your GitLab instance.
  2. Log into your GitLab account.
  3. Access the GitLab repository that you previously created to store your desired state configuration files.
  4. Click Settings > Repository.
  5. Expand Deploy Tokens to create a new deploy token.
  6. Enter a name for the token, and then select an optional expiration date that suits your deployment needs.
  7. Under Scopes, select read_repository.
  8. Click Create deploy token.

Results

A token is created.

What to do next

Create a copy of the token to use later, when assigning your Git repository to your Edge Compute Stack site or host.