Create an access token for the Gitlab entity to which your
runner is attached. The token needs to have read_api
scope at the developer
access level.
The Gitlab documentation for creating a token by entity:
Terraform
The Gitlab Terraform provider is quite functional and
can be used to create a group token via the gitlab_group_access_token
resource.