Versioning fails on Gitlab CI Runners
It seems that on Gitlab runners, automatic versioning always report a dirty repository.
According to https://forum.gitlab.com/t/gitlab-runner-clones-a-dirty-version-when-using-lfs/21874, this is due to Gitlab not using Git LFS, but downloading LFS files with a custom script. Therefore, git thinks these files are not committed and therefore report a dirty repo.