Skip to content

Commit f146fd8

Browse files
committed
workflows: Run job in the CI container directly
Instead of invoking docker ourselves, set the github job to run in the CI container directly. This also adds a workaround for: actions/runner#2033 Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
1 parent f7e43a2 commit f146fd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/rust.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ jobs:
2424
tests:
2525
name: Fedora tests
2626
runs-on: ubuntu-latest
27+
container:
28+
image: quay.io/keylime/keylime-ci:latest
2729
steps:
2830
- uses: actions/checkout@v4
31+
- name: Set git safe.directory for the working directory
32+
run : git config --system --add safe.directory "$PWD"
2933
- name: Run tests
30-
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
34+
run: bash tests/run.sh
3135
- uses: actions/upload-artifact@v4
3236
with:
3337
name: tarpaulin-report

0 commit comments

Comments
 (0)