diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 15:09:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 15:09:35 +0000 |
commit | 9c6578ed4e0bc92cd838ef96d978df54403e9609 (patch) | |
tree | 5dff7ad20ae6402e4b7a5a44fe4e81ef04855cdf /doc/api/container_registry.md | |
parent | 2af44d609eb8a1579169f9a350bc531d1081d77f (diff) | |
download | gitlab-ce-9c6578ed4e0bc92cd838ef96d978df54403e9609.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/container_registry.md')
-rw-r--r-- | doc/api/container_registry.md | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/api/container_registry.md b/doc/api/container_registry.md index f29f8aaf6e9..0b37c0ad91a 100644 --- a/doc/api/container_registry.md +++ b/doc/api/container_registry.md @@ -6,10 +6,30 @@ info: To determine the technical writer assigned to the Stage/Group associated w # Container Registry API -> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/55978) in GitLab 11.8. +> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/55978) in GitLab 11.8. +> - The use of `CI_JOB_TOKEN` scoped to the current project was [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49750) in GitLab 13.12. This is the API documentation of the [GitLab Container Registry](../user/packages/container_registry/index.md). +When the `ci_job_token_scope` feature flag is enabled (it is **disabled by default**), you can use the below endpoints +from a CI/CD job, by passing the `$CI_JOB_TOKEN` variable as the `JOB-TOKEN` header. +The job token will only have access to its own project. + +[GitLab administrators with access to the GitLab Rails console](../administration/feature_flags.md) +can opt to enable it. + +To enable it: + +```ruby +Feature.enable(:ci_job_token_scope) +``` + +To disable it: + +```ruby +Feature.disable(:ci_job_token_scope) +``` + ## List registry repositories ### Within a project |