Use ResetAuthenticationTokenService in Runner API

What does this MR do and why?

This MR is a follow-up that uses the new ResetAuthenticationTokenService in place of the current usage of reset_token!.

🛠️ with ❤️ at Siemens

References

MR acceptance checklist

MR Checklist ( @nwittstruck)

How to set up and validate locally

  1. Create a new instance runner to get a runner authentication token to query. Admin > CI / CD > Runners > New instance runner.

  2. Reset by token:

curl --request POST --form "token=<current token>" \
    "https://gitlab.example.com/api/v4/runners/reset_authentication_token"
  1. Reset by id:
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
     "https://gitlab.example.com/api/v4/runners/1/reset_authentication_token"

Related to #514936 (closed)

Edited by Nicholas Wittstruck

Merge request reports

Loading