From 12758cd1656130dc51021b974115cd307f9701d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Thu, 19 Jan 2023 18:04:35 +0100 Subject: [PATCH] safedir ? safedir ? safedir ? safedir ? Issue #908 - Set checkout directory as git safe-dir to workaround security See actions/checkout#766 for what changes happened in git --- .github/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ced1f56c9..4e21af1ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -739,11 +739,16 @@ jobs: - uses: actions/checkout@v3 + - name: Configure checkout as git safe directory + run: cd .. && git config --global --add safe.directory "$(pwd)/skupper-router" + - name: Deploy the spec.rpkg file to / run: ln -s packaging/skupper-router.spec.rpkg ./ - name: Install build dependencies (2/2) run: | + git status + git rev-parse --show-toplevel rpkg spec --outdir /tmp/rpkg dnf builddep --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y /tmp/rpkg/skupper-router.spec