From b5e64c52f375cbf46c03b9cddc71db9c32c48afd Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 8 Jan 2024 17:33:26 +0100 Subject: [PATCH] fix(ci): manually invoke falcoctl to install cloudtrail and k8saudit plugin before running tests. Signed-off-by: Federico Di Pierro --- .github/workflows/reusable_test_packages.yaml | 8 ++++++++ CMakeLists.txt | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable_test_packages.yaml b/.github/workflows/reusable_test_packages.yaml index a0cdbc63..daa19ff2 100644 --- a/.github/workflows/reusable_test_packages.yaml +++ b/.github/workflows/reusable_test_packages.yaml @@ -43,6 +43,14 @@ jobs: tar -xvf $(ls falco-*.tar.gz) cd falco-${{ inputs.version }}-${{ inputs.arch }} sudo cp -r * / + + # Note: most probably the plugin related tests should be moved to the plugin repo sooner or later. + - name: Install needed artifacts using falcoctl + if: ${{ inputs.static == false }} + run: | + sudo mkdir -p /usr/share/falco/plugins + sudo falcoctl artifact install k8saudit-rules + sudo falcoctl artifact install cloudtrail-rules # We only run driver loader tests on x86_64 - name: Install dependencies for falco-driver-loader tests diff --git a/CMakeLists.txt b/CMakeLists.txt index c7e4abf2..5b0c74d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,6 @@ include(static-analysis) # Shared build variables set(FALCO_SINSP_LIBRARY sinsp) set(FALCO_SHARE_DIR share/falco) -set(FALCO_PLUGINS_DIR ${FALCO_SHARE_DIR}/plugins) set(FALCO_ABSOLUTE_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/${FALCO_SHARE_DIR}") set(FALCO_BIN_DIR bin)