diff --git a/.gitlab/sonarqube.yml b/.gitlab/sonarqube.yml
index e9d4d1ab108d5a261ad3645012cb904d9798a9b6..dcc43e95e844d207096bc9e6b49e32f8c764f77d 100644
--- a/.gitlab/sonarqube.yml
+++ b/.gitlab/sonarqube.yml
@@ -2,6 +2,9 @@
 .sonarqube:
   stage: analyze
   variables:
+    GIT_CONFIG_COUNT: 1
+    GIT_CONFIG_KEY_0: "safe.directory"
+    GIT_CONFIG_VALUE_0: "*"
     GIT_DEPTH: "0"
     VERSION: sonarqube
   script: