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
- Go to your GitLab instance.
- Log into your GitLab account.
- Access the GitLab repository that you previously created to store your desired state configuration files.
- Click .
- Expand Deploy Tokens to create a new deploy token.
- Enter a name for the token, and then select an optional expiration date that suits your deployment needs.
- Under Scopes, select read_repository.
- 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.