From: Andrew Bartlett Date: Fri, 6 May 2022 05:53:29 +0000 (+1200) Subject: .gitlab-ci: Work around new git restrictions arising from CVE-2022-24765 X-Git-Tag: talloc-2.3.4~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd568490089ae6d5bcf03068bfc4ca6b9103badb;p=thirdparty%2Fsamba.git .gitlab-ci: Work around new git restrictions arising from CVE-2022-24765 It was realised that git would run commands found in a git repo (eg from configuration). Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- diff --git a/.gitlab-ci-main.yml b/.gitlab-ci-main.yml index 3ac0e772576..1a01435a925 100644 --- a/.gitlab-ci-main.yml +++ b/.gitlab-ci-main.yml @@ -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