From 946bbce82c30f423f3e3d0a4347b41b78e25b02e 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 | 10 +++++----- slither.config.json | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/slither.yaml b/.github/workflows/slither.yaml index a9601aa7..7ba3bb2d 100644 --- a/.github/workflows/slither.yaml +++ b/.github/workflows/slither.yaml @@ -33,19 +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: - sarif: results.sarifs + sarif: results.sarif node-version: "18" fail-on: none diff --git a/slither.config.json b/slither.config.json index 05d0dcb0..c4767d64 100644 --- a/slither.config.json +++ b/slither.config.json @@ -1,7 +1,5 @@ { - "compile_force_framework": "hardhat", + "compile_force_framework": "foundry", "detectors_to_exclude": "", - "filter_paths": "artifacts,cache,data,dist,docs,lib,node_modules,pkg,scripts,tasks,test,testing,typechain-types", - "hardhat_ignore_compile": true, - "npx_disable": true + "filter_paths": "forge-std,artifacts,cache,data,dist,docs,lib,node_modules,pkg,scripts,tasks,test,testing,typechain-types" }