From fd3edea31c8cc3bff8a6b24e2234befec06b64ef 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] 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..4b30675e8 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: git config --global --add safe.directory "$(pwd)" + - name: Deploy the spec.rpkg file to / run: ln -s packaging/skupper-router.spec.rpkg ./ - name: Install build dependencies (2/2) run: | + git status + export GIT_ROOT=`pwd` rpkg spec --outdir /tmp/rpkg dnf builddep --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y /tmp/rpkg/skupper-router.spec