GIT_DEPTH in .gitlab-ci.yml should be a string.
GIT_DEPTH: 1 breaks local execution of CI runners gitlab-runner exec docker as .gitlab-ci.yml expects all keys to be strings. This is documented and reported here
This correctly stringifies GIT_DEPTH so that local runner execution now works.