diff --git a/.github/workflows/kyverno-checks.yaml b/.github/workflows/kyverno-checks.yaml index 7fb7d2e4..163ddc05 100644 --- a/.github/workflows/kyverno-checks.yaml +++ b/.github/workflows/kyverno-checks.yaml @@ -19,7 +19,8 @@ jobs: - name: Get list of changed files id: changed-files run: | - echo "changed-files=\"$(git diff --name-only --diff-filter=d HEAD^1 HEAD)\"" >> "$GITHUB_OUTPUT" + echo "changed-files=$(git diff --name-only --diff-filter=d HEAD^1 HEAD)" | \ + while IFS= read -r line; do printf 'changed-files=%q\n' "$line"; done >> "$GITHUB_OUTPUT" - name: Check for kyverno in changed files id: kyverno-check run: |