Skip to content

Commit

Permalink
ci: slither ignore foundry compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco de Borja Aranda Castillejo <borja@zetachain.com>
  • Loading branch information
Francisco de Borja Aranda Castillejo committed Jul 12, 2024
1 parent 961c059 commit 1dc1c9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 1dc1c9c

Please sign in to comment.