Skip to content

Commit 72cbe78

Browse files
committed
workflows: Add workaround to set git directory as safe
Set the current working directory as safe to workaround: actions/checkout#1169 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
1 parent afa60ab commit 72cbe78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v4
29+
- name: Add safe directory config
30+
run: git config --system --add safe.directory "$PWD"
2931
- name: Run tests
3032
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
3133
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)