From de7c3145beecc0c35ecf241fceff198f694ff7e4 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Mon, 9 Dec 2024 12:27:40 +0100 Subject: [PATCH] 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: https://github.com/actions/runner/issues/2033 Signed-off-by: Anderson Toshiyuki Sasaki --- .github/workflows/rust.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d59bdf19..9d52accb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,10 +24,14 @@ jobs: tests: name: Fedora tests runs-on: ubuntu-latest + container: + image: quay.io/keylime/keylime-ci:latest steps: - uses: actions/checkout@v4 + - name: Set git safe.directory for the working directory + 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 + run: bash tests/run.sh - uses: actions/upload-artifact@v4 with: name: tarpaulin-report