How to generate and use Personal Access Token
To authenticate your Git operations, such as cloning, you can use a Personal Access Token (PAT). This token allows you to access your account using the Control API and can be used in place of a password.
To generate a PAT, use the following instructions:
- From the top right pane of DevOps Control, click Settings and select Access Tokens.
- In the Manage Access Tokens pane, navigate to Generate Token section.
- Enter a name in the Token Name field to indicate the purpose the token is used for.
- In the Repository and Organization Access, select All (public, private, and limited). The All (public, private, and limited) option is selected by default.
- From the Select permissions drop-down, set authorization for the repository to read and write. This configuration helps to determine the extent of access the token will have. For rest of the fields (activitypub, issue, misc, notification, organization, package, and user), No Access is selected by default.
- Click Generate Token. A token will be created.
- Copy the token and use it instead of your password when accessing your account. Store it in a secured place and it does not have any expiration duration.