diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/services-github-runners.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/services-github-runners.nix b/tests/services-github-runners.nix index fc57102..5578750 100644 --- a/tests/services-github-runners.nix +++ b/tests/services-github-runners.nix @@ -1,21 +1,18 @@ { config, pkgs, ... }: { - users = { - knownUsers = [ "github-runner" ]; - knownGroups = [ "github-runner" ]; - }; - services.github-runners."a-runner" = { enable = true; url = "https://github.com/nixos/nixpkgs"; - tokenFile = pkgs.writeText "fake-token" "not-a-token"; - package = pkgs.runCommand "github-runner-0.0.0" { } "touch $out"; + tokenFile = "/secret/path/to/a/github/token"; + # We need an overridable derivation but cannot use the actual github-runner package + # since it still relies on Node.js 16 which is marked as insecure. + package = pkgs.hello; }; test = '' echo >&2 "checking github-runner service in /Library/LaunchDaemons" grep "org.nixos.github-runner-a-runner" ${config.out}/Library/LaunchDaemons/org.nixos.github-runner-a-runner.plist - grep "<string>github-runner</string>" ${config.out}/Library/LaunchDaemons/org.nixos.github-runner-a-runner.plist + grep "<string>_github-runner</string>" ${config.out}/Library/LaunchDaemons/org.nixos.github-runner-a-runner.plist echo >&2 "checking for user in /activate" grep "GitHub Runner service user" ${config.out}/activate |
