nixos: rotate the runner registration token
All checks were successful
nixos / nixos (push) Successful in 1m14s
All checks were successful
nixos / nixos (push) Successful in 1m14s
The token sat in the old repository history. Forgejo generated a new one, which retires the old; the runner re-registers with it on this deploy (the job running the deploy shows as cancelled; the next run confirms). The old runner entry stays behind offline. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
f1baa4025c
commit
0a54caa7d4
1 changed files with 25 additions and 24 deletions
|
|
@ -56,7 +56,8 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
sops.secrets."runner/token" = { };
|
||||
# A new token re-registers the runner (the module compares its hash)
|
||||
sops.secrets."runner/token".restartUnits = [ "gitea-runner-asxpio.service" ];
|
||||
sops.secrets."runner/interop_token" = { };
|
||||
sops.templates."runner.env".content = ''
|
||||
TOKEN=${config.sops.placeholder."runner/token"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue