github-runner/service.nix: fix missing argument in workDir assertion (#1526)

This commit is contained in:
Sam 2025-06-30 07:55:51 +00:00 committed by GitHub
commit 425c929e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ in
message = "`services.github-runners.${name}`: The `extraLabels` option is mandatory if `noDefaultLabels` is set";
}
{
assertion = cfg.workDir == null || !(hasPrefix "/run/" cfg.workDir || hasPrefix "/var/run/" cfg.workDir || hasPrefix "/private/var/run/");
assertion = cfg.workDir == null || !(hasPrefix "/run/" cfg.workDir || hasPrefix "/var/run/" cfg.workDir || hasPrefix "/private/var/run/" cfg.workDir);
message = "`services.github-runners.${name}`: `workDir` being inside /run is not supported";
}
])