diff --git a/.github/actions/bazel-test-all/action.yaml b/.github/actions/bazel-test-all/action.yaml index 2ee3e640dc6..5f9b54c6942 100644 --- a/.github/actions/bazel-test-all/action.yaml +++ b/.github/actions/bazel-test-all/action.yaml @@ -24,7 +24,7 @@ runs: # freshly deployed k8s machines require ownership correctly set if [ -e /cache ]; then - sudo find /cache -not -user 1001 -or -not -group 1001 -exec chown 1001:1001 {} + + sudo find /cache \( -not -user 1001 -or -not -group 1001 \) -exec chown 1001:1001 {} + fi if [ -n "$SSH_PRIVATE_KEY_BACKUP_POD" ]; then