Methods for Obtaining Token

  • New Version of GitLab
  • Old Version of GitLab

New Version of GitLab

1. Code Source Configuration

Log in to GitLab, click on the icon of the logged-in account in the upper right corner, and then select Settings.

2. Create Token

Select Access Tokens in the left menu bar, fill in the name, check the read_registry option, and then click Create personal access token to create the token.

3. Copy and Save the Token

After creating the token, you should immediately copy it. Usually, there will be a “Copy” button or a similar function provided near the displayed token. Click on it to copy the token to the clipboard. Then, save the token in a safe place, such as a password manager or a private text document. This is very important because the token is like a password and is used to access relevant resources in GitLab. Once lost or leaked, it may lead to security risks for your projects or account.

Legacy versions of GitLab

1. Code Source Configuration

Log in to GitLab and click on the Profile settings icon in the upper right corner.

2. Copy Private Token

Select Account in the left menu bar and then copy the private token.

Save the token in a safe place, such as a password manager or a private text document. This is very important because the token is like a password and is used to access relevant resources in GitLab. Once lost or leaked, it may lead to security risks for your projects or account.

作者:chering  创建时间:2024-12-18 10:24
最后编辑:chering  更新时间:2025-01-17 09:02