-
-
Notifications
You must be signed in to change notification settings - Fork 4
Setup Access Token
This page shows how to set up an access token for your deployments.
The Git access token is used to authenticate with your Git provider (GitHub, GitLab, Bitbucket, etc.) and to clone or fetch your repositories.
You can use doco-cd without a Git access token if the repositories you want to use for your deployments are publicly accessible. However, it is still recommended to use one in that case to for example avoid rate limits.
If you set a Git access token, doco-cd will always use it to authenticate with your Git provider.
You can either use a personal access token or a GitHub App.
See the GitHub docs for
Personal access token (Classic)
- The minimum required scope is
repo
Fine-grained tokens
- Repository access
- Set to
Public Repositories (read-only)
for only public repositories. - Set to
All Repositories
for all repositories.
- Set to
- The minimum required permissions are:
-
Contents
->Read-only
-
Metadata
->Read-only
-
- Go to your user settings.
- Click on
Applications
. - Under
Generate New Token
:- Fill in the
Token Name
field. - Set
Repository and Organization Access
toAll
- Open
Select Permissions
and setrepository
toRead
- Click on
Generate Token
and save the token that is shown on the top of the page.
- Fill in the
You can either use a personal access token, a group access token or a project access token for Gitlab.
Recommended are personal or group access tokens, as they can be used for multiple projects/repositories.
- The role
Reporter
is sufficient (if asked). - The minimum required scope is
read_repository
.
See the Gitlab docs for