From c9b247b322177f85d14c9e390421cf8ec817d65d Mon Sep 17 00:00:00 2001 From: Anthony Fiddes <11233666+Anthony-Fiddes@users.noreply.github.com> Date: Sun, 6 Apr 2025 19:00:51 +0200 Subject: [PATCH] test: add test for bash injection in taskfiles --- tests/query/injections/yaml/bash-on-taskfiles.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/query/injections/yaml/bash-on-taskfiles.yml diff --git a/tests/query/injections/yaml/bash-on-taskfiles.yml b/tests/query/injections/yaml/bash-on-taskfiles.yml new file mode 100644 index 000000000..87a699cc3 --- /dev/null +++ b/tests/query/injections/yaml/bash-on-taskfiles.yml @@ -0,0 +1,15 @@ +# https://taskfile.dev + +version: '3' + +vars: + GREETING: + sh: echo "Hello, World!" + # ^ @bash + +tasks: + default: + cmds: + - echo "{{.GREETING}}" + # ^ @bash + silent: true