Using a Public Deploy Key for pull and merge under protected branches stopped working in 16.x /GitLab Self hosted CE/
The Public Deploy Key feature (https://docs.gitlab.com/ee/user/project/deploy_keys/#create-a-public-deploy-key) seems to have stopped working in the 16 series, reproduced on 16.8 and latest CE (16.11).
To reproduce
- Add a public deploy key as admin
- in a project as a maintainer or even owner, add the public deploy key, and also give it write access
- under protected branch, in the dropdown for pull and merge, the deploy key is now visiable, try to use it.
- A general error will be shown (failed to update branch)
This worked perfectly in 15.x and according to docs should had continue to do so.
The issue/regression/bug is further described here by several users:
Edited by Josef Andersson