Skip to content
代码片段 群组 项目
未验证 提交 afd55a92 编辑于 作者: Paul Murray's avatar Paul Murray 提交者: GitLab
浏览文件

Add emphasis that the user should be gitlab-ci-token

上级 c1f93966
No related branches found
No related tags found
无相关合并请求
...@@ -224,7 +224,7 @@ parameter in the `projects` REST API endpoint. ...@@ -224,7 +224,7 @@ parameter in the `projects` REST API endpoint.
### To `git clone` a private project's repository ### To `git clone` a private project's repository
You can use the job token to authenticate and clone a repository from a private project You can use the job token to authenticate and clone a repository from a private project
in a CI/CD job. For example: in a CI/CD job. Use `gitlab-ci-token` as the user, and the value of the job token as the password. For example:
```shell ```shell
git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.example.com/<namespace>/<project> git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.example.com/<namespace>/<project>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册