Revisit git clone safe directories hack in CI when gitlab-runner issue is resolved
We had to add some hacks to the CI scripts to work around a gitlab-runner issue that conflicted with a git security issue. See: !862 (comment 1499278)
Revisit this and remove the hacks once https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29022 is fixed.