Re: [PATCH] ci: declare git repository a safe directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christian Göttsche <cgzones@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>

Acked-by: Petr Lautrbach <plautrba@xxxxxxxxxx>

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





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux