Skip to content

Commit 7d6d63a

Browse files
abompardhroncokfrenzymadness
authored
Mark the repo as safe for Git
This relates to actions/checkout#760 Some tests need git to be functional (eg pre-commit checks) and since CVE-2022-24765 git checks directory ownership. Merges #55 Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Lumir Balhar <lbalhar@redhat.com>
1 parent d030c42 commit 7d6d63a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ if [ ! -z "$DNF_INSTALL" ]; then
1313
dnf -y --setopt=tsflags=nodocs --setopt=deltarpm=false install $DNF_INSTALL
1414
fi
1515

16+
# Mark the current directory as safe for Git:
17+
git --git-dir=~ config --system --add safe.directory $PWD
18+
1619
/usr/bin/tox $TOX_PARAMS

0 commit comments

Comments
 (0)