Add fj runner token subcommand (Actions runner registration token) #193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add an
fjsubcommand to fetch a Forgejo Actions runner registration token, so registering a self-hosted runner does not require hand-rolling an API call.Background
Verified this session that the current keychain-authenticated
fjcredentials can already retrieve registration tokens via the API (org token came back 40 chars, repo token 43 chars). Forgejo exposes these as GET (POST returns 405):GET /orgs/{org}/actions/runners/registration-tokenGET /repos/{owner}/{repo}/actions/runners/registration-tokenSo the subcommand is a thin, already-proven wrapper.
Proposed shape
register.shcan dofj runner token --org rasterstate.--repo/global host resolution conventions.Notes