Run git switch "${GITHUB_BASE_REF}" fatal: detected dubious ownership in repository at '/__w/<repository>'
To add an exception for this directory, call:
git config --global --add safe.directory /__w/<repository>/<repository>
Error: Process completed with exit code 128.
Throws
After specifying the exception:
Or even removing all safe directory checks:
There is an invalid reference when changing branches, right from the main branch: