From 1dc1c9ceeba2dac83621fb6a140265b857ca3ca5 Mon Sep 17 00:00:00 2001 From: Francisco de Borja Aranda Castillejo Date: Fri, 12 Jul 2024 10:46:21 +0200 Subject: [PATCH] ci: slither ignore foundry compilation Signed-off-by: Francisco de Borja Aranda Castillejo --- .github/workflows/slither.yaml | 9 +++++---- slither.config.json | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/slither.yaml b/.github/workflows/slither.yaml index a9601aa7..f701a33a 100644 --- a/.github/workflows/slither.yaml +++ b/.github/workflows/slither.yaml @@ -33,18 +33,19 @@ jobs: - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 - - - name: Install Dependencies + + - name: Install dependencies run: yarn install - - name: Compile contracts - run: yarn compile + - name: Build project + run: yarn build - name: Run Slither uses: crytic/slither-action@main id: slither continue-on-error: true with: + ignore-compile: true sarif: results.sarifs node-version: "18" fail-on: none diff --git a/slither.config.json b/slither.config.json index 05d0dcb0..bb98bd48 100644 --- a/slither.config.json +++ b/slither.config.json @@ -1,7 +1,7 @@ { - "compile_force_framework": "hardhat", "detectors_to_exclude": "", - "filter_paths": "artifacts,cache,data,dist,docs,lib,node_modules,pkg,scripts,tasks,test,testing,typechain-types", + "filter_paths": "forge-std,artifacts,cache,data,dist,docs,lib,node_modules,pkg,scripts,tasks,test,testing,typechain-types", + "npx_disable": true, "hardhat_ignore_compile": true, - "npx_disable": true + "foundry_ignore_compile": true }