Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a programmable way to register a new action runner #23643

Closed
yardenshoham opened this issue Mar 22, 2023 · 2 comments · Fixed by #23762
Closed

Provide a programmable way to register a new action runner #23643

yardenshoham opened this issue Mar 22, 2023 · 2 comments · Fixed by #23762
Labels
topic/gitea-actions related to the actions of Gitea type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@yardenshoham
Copy link
Member

yardenshoham commented Mar 22, 2023

Feature Description

I wish there was an API endpoint I could query to retrieve a token I could register a new runner with. Currently, the only way to do this is to go to the web UI and copy the token from the page.

@yardenshoham yardenshoham added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. topic/gitea-actions related to the actions of Gitea type/enhancement An improvement of existing functionality and removed type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Mar 22, 2023
@wolfogre
Copy link
Member

wolfogre commented Mar 23, 2023

I remember I have discussed it with Lunny privately before, and the consensus is providing reusable token to register multiple runners, or you still need an auth token to use API.

Or we can provide reusable token to register multiple runners when you need an API auth token which can only obtain tokens to register runners.

Reusable tokens are feasible both in design and technology, you can even do this by modifying the status of tokens in database manually.

@wolfogre
Copy link
Member

To be clear, I have no objection to having API to manage runners like listing, registering and removing.

techknowlogick added a commit that referenced this issue Apr 17, 2023
This is a CLI command to generate new tokens for the runners to register
with

Fix #23643

---------

Co-authored-by: delvh <dev.lh@web.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
2 participants