diff mbox series

ci: declare git repository a safe directory

Message ID 20220517132622.3380-1-cgzones@googlemail.com (mailing list archive)
State Accepted
Commit ed4cd8772ac8
Headers show
Series ci: declare git repository a safe directory | expand

Commit Message

Christian Göttsche May 17, 2022, 1:26 p.m. UTC
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>
---
test run: https://github.com/cgzones/selinux/actions/runs/2337320823
---
 scripts/ci/fedora-test-runner.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Petr Lautrbach May 17, 2022, 5:05 p.m. UTC | #1
Christian Göttsche <cgzones@googlemail.com> writes:

> 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>

> ---
> test run: https://github.com/cgzones/selinux/actions/runs/2337320823
> ---
>  scripts/ci/fedora-test-runner.sh | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/scripts/ci/fedora-test-runner.sh b/scripts/ci/fedora-test-runner.sh
> index 3ce2c3a6..7676f6ea 100755
> --- a/scripts/ci/fedora-test-runner.sh
> +++ b/scripts/ci/fedora-test-runner.sh
> @@ -70,6 +70,7 @@ dnf install -y \
>  cd "$SELINUX_DIR"
>  
>  # Show HEAD commit for sanity checking
> +git config --global --add safe.directory "$SELINUX_DIR"
>  git log --oneline -1
>  
>  #
> -- 
> 2.36.1
Petr Lautrbach May 18, 2022, 10:32 a.m. UTC | #2
Petr Lautrbach <plautrba@redhat.com> writes:

> Christian Göttsche <cgzones@googlemail.com> writes:
>
>> 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>

Merged.


>> ---
>> test run: https://github.com/cgzones/selinux/actions/runs/2337320823
>> ---
>>  scripts/ci/fedora-test-runner.sh | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/scripts/ci/fedora-test-runner.sh b/scripts/ci/fedora-test-runner.sh
>> index 3ce2c3a6..7676f6ea 100755
>> --- a/scripts/ci/fedora-test-runner.sh
>> +++ b/scripts/ci/fedora-test-runner.sh
>> @@ -70,6 +70,7 @@ dnf install -y \
>>  cd "$SELINUX_DIR"
>>  
>>  # Show HEAD commit for sanity checking
>> +git config --global --add safe.directory "$SELINUX_DIR"
>>  git log --oneline -1
>>  
>>  #
>> -- 
>> 2.36.1
diff mbox series

Patch

diff --git a/scripts/ci/fedora-test-runner.sh b/scripts/ci/fedora-test-runner.sh
index 3ce2c3a6..7676f6ea 100755
--- a/scripts/ci/fedora-test-runner.sh
+++ b/scripts/ci/fedora-test-runner.sh
@@ -70,6 +70,7 @@  dnf install -y \
 cd "$SELINUX_DIR"
 
 # Show HEAD commit for sanity checking
+git config --global --add safe.directory "$SELINUX_DIR"
 git log --oneline -1
 
 #