Skip to content

Commit

Permalink
workflows: Add workaround to set git directory as safe
Browse files Browse the repository at this point in the history
Set the current working directory as safe to workaround:
actions/checkout#1169

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
  • Loading branch information
ansasaki committed Dec 9, 2024
1 parent afa60ab commit 72cbe78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72cbe78

Please sign in to comment.