From 72cbe78e25c142ab325a99d8b0002cd8a059b81e Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Mon, 9 Dec 2024 12:27:40 +0100 Subject: [PATCH] workflows: Add workaround to set git directory as safe Set the current working directory as safe to workaround: https://github.com/actions/checkout/issues/1169 Signed-off-by: Anderson Toshiyuki Sasaki --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d59bdf19..6ce8f9c5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,6 +26,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Add safe directory config + run: git config --system --add safe.directory "$PWD" - name: Run tests run: docker run --security-opt seccomp=tests/seccomp-profile.json -v $(pwd):/tmp/code_under_test -w /tmp/code_under_test quay.io/keylime/keylime-ci:latest dbus-run-session -- /tmp/code_under_test/tests/run.sh - uses: actions/upload-artifact@v4