From fe62db8917863422e2518bf40dccfd794a6627b5 Mon Sep 17 00:00:00 2001 From: atlas Date: Mon, 1 Jun 2026 18:34:37 +0200 Subject: [PATCH] fix(#981): enable Forgejo Actions so runner registration token API works Without [actions] ENABLED = true in forgejo's config, the GET /api/v1/admin/runners/registration-token endpoint returns "runner registration token not found" regardless of token scopes, causing hive-ci-register.service to fail on first boot. --- nix/modules/hive-forge.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/modules/hive-forge.nix b/nix/modules/hive-forge.nix index b4c1535e..da52a894 100644 --- a/nix/modules/hive-forge.nix +++ b/nix/modules/hive-forge.nix @@ -312,6 +312,12 @@ in SIGNING_KEY = "default"; GNUPGHOME = "/var/lib/forgejo/.gnupg"; }; + # Enable Forgejo Actions so the runner registration token + # API endpoint is available. Without this the endpoint + # returns "runner registration token not found" regardless + # of token scopes. Required by `hive-ci-register.service` + # in the hive-ci container. + actions.ENABLED = true; # F3 (federation) computes its data dir relative to the # forgejo binary, which lands in the read-only nix # store and crashes anything that touches the F3