diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 18:44:42 +0300 |
commit | 4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch) | |
tree | 5423a1c7516cffe36384133ade12572cf709398d /doc/api/container_registry.md | |
parent | e570267f2f6b326480d284e0164a6464ba4081bc (diff) |
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
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 |