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 |
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 <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 --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 #
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(+)