File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 push : false
4343 load : true
4444 tags : argus-security:e2e-test
45+ # Falco requires kernel headers and privileged access for driver loading,
46+ # which are unavailable in GitHub Actions runners. Keep disabled to avoid
47+ # flaky CI failures from apt repo or driver issues.
4548 build-args : INSTALL_FALCO=false
4649 cache-from : type=gha
4750 cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change @@ -81,14 +81,22 @@ RUN ZAP_VERSION="2.16.0" && \
8181# Falco for runtime security monitoring (opt-in via build arg)
8282ARG INSTALL_FALCO=true
8383RUN if [ "$INSTALL_FALCO" = "true" ]; then \
84- curl -fsSL https://falco.org/repo/falcosecurity-packages.asc \
84+ echo "=== Installing Falco ===" \
85+ && curl -fsSL https://falco.org/repo/falcosecurity-packages.asc \
8586 | gpg --dearmor -o /usr/share/keyrings/falco-archive-keyring.gpg \
8687 && echo "deb [signed-by=/usr/share/keyrings/falco-archive-keyring.gpg] https://download.falco.org/packages/deb stable main" \
8788 | tee /etc/apt/sources.list.d/falcosecurity.list \
8889 && apt-get update \
89- && apt-get install -y --no-install-recommends falco \
90+ && FALCO_FRONTEND=noninteractive apt-get install -y --no-install-recommends falco \
9091 && rm -rf /var/lib/apt/lists/* \
91- || echo "WARNING: Falco installation failed (non-fatal) — runtime monitoring will be unavailable"; \
92+ && falco --version \
93+ && echo "=== Falco installed successfully ===" \
94+ || { echo "ERROR: Falco installation failed (non-fatal) — runtime monitoring will be unavailable"; \
95+ echo " Diagnostics:"; \
96+ echo " - GPG keyring exists: $(test -f /usr/share/keyrings/falco-archive-keyring.gpg && echo yes || echo no)"; \
97+ echo " - Apt source exists: $(test -f /etc/apt/sources.list.d/falcosecurity.list && echo yes || echo no)"; \
98+ echo " - falco binary: $(which falco 2>/dev/null || echo 'not found')"; \
99+ rm -rf /var/lib/apt/lists/*; }; \
92100 else \
93101 echo "Skipping Falco installation (INSTALL_FALCO=$INSTALL_FALCO)"; \
94102 fi
You can’t perform that action at this time.
0 commit comments