Updated on 2025-03-13 GMT+08:00

Configuring an Access Token

Constraints

  • For security reasons, the token will not be displayed after this dialog box is closed as shown in the following figure. Keep the token safe. If you lose or forget it, generate a new one.

  • A maximum of 20 tokens can be created for CodeArts Repo.

Configuring an Access Token

Log in to the CodeArts Repo service repository list page, click the nickname in the upper right corner, choose This Account Settings > Repo > Access Token, click New Token, and set parameters based on the following table.
Table 1 Description

Parameter

Description

Token Name

Mandatory Custom name with a maximum of 200 characters.

Description

Optional. If the description is empty, -- is displayed in the list. Max. 200 characters.

Permissions

This parameter is selected by default and cannot be modified. Read/Write repo: Read from and write into repositories using HTTPS.

Expired

Mandatory Time when a token expires. The default expiration date is set to 30 days from the current date, including the current day. For example, if a token is created on July 3, the default expiration date will be 23:59:59 on August 2. The expiration date can be set to one year from the creation date and cannot be left empty.

After the preceding parameters are set, a token is generated. private-token is used as the username and the token is used as the password. You can clone or push the token in the script. For example:

git clone https://private-token:Your Token@example.com/repo_path.git