Commit d2fd6f36 authored by Marcel Amirault's avatar Marcel Amirault

Put back details about cloning with a job token

We deleted the page that had this info, but we should
put it some place instead of deleting it.
parent 0b641ce4
......@@ -237,6 +237,13 @@ A job token can access a project's resources without any configuration, but it m
give extra permissions that aren't necessary. There is [a proposal](https://gitlab.com/groups/gitlab-org/-/epics/3559)
to redesign the feature for more strategic control of the access permissions.
You can also use the job token to authenticate and clone a repository from a private project
in a CI/CD job:
```shell
git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.example.com/<namespace>/<project>
```
#### GitLab CI/CD job token security
To make sure that this token doesn't leak, GitLab:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment