From 47cb9209beb3a4f7510d2732b1d2345abe1c4343 Mon Sep 17 00:00:00 2001 From: Vasilii Iakliushin Date: Thu, 26 Jan 2023 16:50:41 +0100 Subject: [PATCH 1/2] Add documentation for protected tags creation with deploy keys Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/325415 Changelog: added --- doc/user/project/protected_tags.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/user/project/protected_tags.md b/doc/user/project/protected_tags.md index aa0852565fd55e..0e409134592353 100644 --- a/doc/user/project/protected_tags.md +++ b/doc/user/project/protected_tags.md @@ -86,6 +86,32 @@ To prevent this problem: Users can still create branches, but not tags, with the protected names. +## Allow deploy keys to create protected tags + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/325415) in GitLab 15.10. + +You can permit the owner of a [deploy key](deploy_keys/index.md) to create protected tags. +The deploy key works, even if the user isn't a member of the related project. However, the owner of the deploy +key must have at least read access to the project. + +Prerequisites: + +- The deploy key must be enabled for your project. A project deploy key is enabled by default when + it is created. However, a public deploy key must be + [granted](deploy_keys/index.md#grant-project-access-to-a-public-deploy-key) access to the + project. +- The deploy key must have [write access](deploy_keys/index.md#permissions) to your project + repository. + +To allow a deploy key to create a protected tag: + +1. On the top bar, select **Main menu > Projects** and find your project. +1. On the left sidebar, select **Settings > Repository**. +1. Expand **Protected tags**. +1. From the **Tag** dropdown list, select the tag you want to protect. +1. From the **Allowed to create** list, select the deploy key. +1. Select **Protect**. + ## Delete a protected tag You can manually delete protected tags with the GitLab API, or the -- GitLab From 8383fa416863a772274e479651d1c1b197652a7a Mon Sep 17 00:00:00 2001 From: Vasilii Iakliushin Date: Fri, 17 Mar 2023 14:38:56 +0000 Subject: [PATCH 2/2] Update release version --- doc/user/project/protected_tags.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user/project/protected_tags.md b/doc/user/project/protected_tags.md index 0e409134592353..1256599c521fc4 100644 --- a/doc/user/project/protected_tags.md +++ b/doc/user/project/protected_tags.md @@ -88,7 +88,7 @@ Users can still create branches, but not tags, with the protected names. ## Allow deploy keys to create protected tags -> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/325415) in GitLab 15.10. +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/325415) in GitLab 15.11. You can permit the owner of a [deploy key](deploy_keys/index.md) to create protected tags. The deploy key works, even if the user isn't a member of the related project. However, the owner of the deploy -- GitLab