Skip to content

Commit

Permalink
Merge pull request fluidattacks#1422 from dsalaza4/main
Browse files Browse the repository at this point in the history
feat(back): fluidattacks#1223 enforce root jobs
  • Loading branch information
dsalaza4 authored Dec 19, 2024
2 parents be8e013 + 59ddb6e commit f61b0fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/evaluator/modules/jobs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
{ config, lib, ... }:
let
makeOutput = name: value: {
inherit name;
name = if lib.strings.hasPrefix "/" name then
name
else
abort
''The job "${name}" must begin with a slash. Rename it to "/${name}"'';
inherit value;
};
in {
Expand Down

0 comments on commit f61b0fc

Please sign in to comment.