Skip to content

add runners generate-tokens command

Jelto requested to merge runner-generate-tokens into main

This change adds a new command generate-tokens to the runner script. This command uses the new runner registration workflow which replaces the old registration_token workflow. The new tokens are linked to a specific config (projects, groups, tags, protected, ...), so runner-config.json stores the proper config for Shared, Trusted and Cloud runners. python-gitlab had to be bumped to 4.0.0 and we have to wait a few days until it's available in pip.

https://docs.gitlab.com/ee/ci/runners/new_creation_workflow.html https://about.gitlab.com/blog/2023/07/06/how-to-automate-creation-of-runners

Bug: T344951

Merge request reports