My goal is to automatically register a shared Gitlab runner on our hosted Gitlab. To do this, I need to obtain the runners token via the Gitlab API.
Unfortunately, I haven't found a point in the API to fetch the shared runners token. On the website, the token is shown in Admin area
/ Overview
/ Runners
/ Set up a shared Runner manually
.
As far as I know, Gitlab has 3 different types of runners token:
- Specific (assigned to projects)
- Group (assigned to a group)
- Shared (for unassigned projects)
I am able to access the runners_token
in the project details and the group details but I haven't found a place to obtain the shared runners_token.
I am thankful for every help!