diff --git a/.tekton/tasks/yaml-lint.yaml b/.tekton/tasks/yaml-lint.yaml index 219da926b8..74c6b8c5ab 100644 --- a/.tekton/tasks/yaml-lint.yaml +++ b/.tekton/tasks/yaml-lint.yaml @@ -38,7 +38,7 @@ spec: script: | #!/bin/bash for task in $(find task -name '*.yaml'); do - if yq '.spec?.steps[] | .script' $task | grep -q 'params\.'; then + if yq '.spec?.steps[] | .script' $task | grep -q '\$(params\.'; then FAILED_TASKS="$FAILED_TASKS $task" fi done