Git-lfs not found when using circleci runner

Hi

I installed circleci runner by using provided instructions. It discover my machine, but I get error during performing -checkout step:

Using SSH Config Dir ‘/var/folders/j_/5mbnjvb53dv5cg1ysjgvr1bw0000gn/T/.circleci-ssh233945496’
git version 2.39.3 (Apple Git-145)
Cloning git repository
Cloning into ‘.’…
remote: Enumerating objects: 191, done.
remote: Counting objects: 100% (191/191), done.
remote: Compressing objects: 100% (109/109), done.
remote: Total 191 (delta 70), reused 187 (delta 67), pack-reused 0
Receiving objects: 100% (191/191), 32.87 KiB | 169.00 KiB/s, done.
Resolving deltas: 100% (70/70), done.
Checking out branch
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly

exit status 128

Despite fact that command “which git-lfs” shows that it is in my PATH.
I see simiral issue in topic " Xcode 11.2 macOS Catalina missing git lfs"
Maybe same issue has circleci runner app?

My setup:
macOS 14.1.2 (23B92)
XCode 15.1

This thread may help.

https://stackoverflow.com/questions/67395259/git-clone-git-lfs-filter-process-git-lfs-command-not-found

There is an answer by wandering-tales on Jul 5, 2023 that provides a lot of detail and some work arounds.

Yeah, I have tried all of that.

git lfs install --system

Does not solves my issue.

ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs"

Is forbidden operation even with sudo because for recent macOS systems it is forbidden to install custom stuff in some directories.

For now I use this instead of -checkout step as workaround:

      - run:
          name: Cloning code
          command: git clone <my ssh repo link> --branch $CIRCLE_BRANCH .