ci: declare git repository a safe directory

Since version 2.35.2, due to CVE-2022-24765, git refuses to operate by
default on a repository owned by a different user.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
Christian Göttsche 2022-05-17 15:26:22 +02:00 committed by Petr Lautrbach
parent 822ad96c3f
commit ed4cd8772a
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ dnf install -y \
cd "$SELINUX_DIR" cd "$SELINUX_DIR"
# Show HEAD commit for sanity checking # Show HEAD commit for sanity checking
git config --global --add safe.directory "$SELINUX_DIR"
git log --oneline -1 git log --oneline -1
# #