diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19ae7c68b5..4bbe7a7c18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,10 +125,6 @@ jobs: with: fetch-depth: 0 - - name: Git safe directory - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - - name: Install deps ⛓️ run: | sudo apt update @@ -317,10 +313,6 @@ jobs: run: | sudo .github/install-deps.sh - - name: Git safe directory - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - - name: Build and test 🏗️🧪 env: # This avoids random failures on CI. @@ -360,10 +352,6 @@ jobs: with: fetch-depth: 0 - - name: Git safe directory - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - - name: Build and test 🏗️🧪 run: | mkdir -p build diff --git a/.github/workflows/test_coverage_ci.yml b/.github/workflows/test_coverage_ci.yml index f1f4c7e6e8..51050f168b 100644 --- a/.github/workflows/test_coverage_ci.yml +++ b/.github/workflows/test_coverage_ci.yml @@ -14,18 +14,7 @@ jobs: unit-test-libsinsp-coverage: name: unit-test-libsinsp-coverage 🧐 runs-on: 'ubuntu-22.04' - container: - image: debian:bookworm steps: - - name: Install deps ⛓️ - run: | - apt update && apt install -y --no-install-recommends ca-certificates \ - cmake build-essential git clang llvm pkg-config autoconf automake \ - libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev \ - libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc \ - libgtest-dev libprotobuf-dev linux-headers-amd64 \ - gpg gpg-agent gcovr - - name: Checkout Libs ⤵️ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -33,11 +22,8 @@ jobs: - name: Install deps ⛓️ run: | - .github/install-deps.sh - - - name: Git safe directory - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE + sudo apt install -y --no-install-recommends ca-certificates cmake build-essential git clang llvm pkg-config autoconf automake libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev libre2-dev libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc libgtest-dev libprotobuf-dev linux-headers-$(uname -r) gpg gpg-agent gcovr + sudo .github/install-deps.sh - name: Build and test 🏗️🧪 run: |