ci: disable command execution in jobset generation

When GitLab PR descriptions contain markdown inline code blocks they get
interpreted as command substitutions in bash.

This is because the here-doc string previously allowed for this behavior.
This commit is contained in:
Martin Weinelt
2025-09-22 15:23:26 +02:00
parent c709476ac5
commit 39ead49eb4

View File

@@ -43,11 +43,11 @@ let
in in
{ {
jobsets = pkgs.runCommand "spec-jobsets.json" { } '' jobsets = pkgs.runCommand "spec-jobsets.json" { } ''
cat >$out <<EOF cat >$out <<'EOF'
${builtins.toJSON desc} ${builtins.toJSON desc}
EOF EOF
# This is to get nice .jobsets build logs on Hydra # This is to get nice .jobsets build logs on Hydra
cat >tmp <<EOF cat >tmp <<'EOF'
${builtins.toJSON log} ${builtins.toJSON log}
EOF EOF
${pkgs.jq}/bin/jq . tmp ${pkgs.jq}/bin/jq . tmp