Unable to update shared runner to specific runner via the api
Summary
API returns an error when attempting to update a runner registered with shared token to a specific runner.
Links
Internal Zendesk Ticket: #83559
Steps to reproduce
- Get the runner registration token from /admin/runners
- Execute gitlab-runner register with previously acquired token
- Attempt to update runner with the specific project. Something like:
curl --request POST --header "PRIVATE-TOKEN: secure" "http://gitlab/api/v4/projects/30/runners" --
form "runner_id=4"
This returns:
{"message":"403 Forbidden - Runner is shared"}
Reproduced on version: 10.0.3-ee
What is the current bug behavior?
Runner fails to update, returns error
What is the expected correct behavior?
Runner updated to specific runner and is associated with project.