]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
.gitlab-ci: Work around new git restrictions arising from CVE-2022-24765
authorAndrew Bartlett <abartlet@samba.org>
Fri, 6 May 2022 05:53:29 +0000 (17:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 May 2022 23:05:31 +0000 (23:05 +0000)
It was realised that git would run commands found in a git repo
(eg from configuration).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
.gitlab-ci-main.yml

index 3ac0e77257616a0fb53ef295d4ca4d918353e04d..1a01435a9255fc201851696e1487ba0206cbce82 100644 (file)
@@ -133,6 +133,8 @@ include:
     - export CXX="ccache c++"
     - ccache -z -M 500M
     - ccache -s
+      # We are already running .gitlab-ci directives from this repo, remove additional checks that break our CI
+    - git config --global --add safe.directory `pwd`
   after_script:
     - mount
     - df -h