From c6f0df77c3a2e10a168d9dda30744283798cff9f Mon Sep 17 00:00:00 2001 From: aquariuslt Date: Thu, 16 May 2024 17:22:15 +0800 Subject: [PATCH] ci: update summary workflow (#20) --- .github/workflows/analyze.yml | 2 -- .github/workflows/summary.yml | 5 ++--- slither.config.json | 16 ++++++++-------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 133a876..67d972d 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -19,5 +19,3 @@ jobs: uses: crytic/slither-action@v0.4.0 continue-on-error: true id: slither - with: - target: 'contracts/' diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml index f38ab57..e7f0832 100644 --- a/.github/workflows/summary.yml +++ b/.github/workflows/summary.yml @@ -6,13 +6,12 @@ jobs: summary: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Slither uses: crytic/slither-action@v0.4.0 continue-on-error: true id: slither with: - target: 'src/' slither-config: 'slither.config.json' - slither-args: '--filter-paths src/test --print contract-summary' + slither-args: '--print contract-summary' diff --git a/slither.config.json b/slither.config.json index 136b61d..51fef86 100644 --- a/slither.config.json +++ b/slither.config.json @@ -1,9 +1,9 @@ { - "detectors_to_run": "reentrancy-eth,reentrancy-no-eth,reentrancy-unlimited-gas", - "exclude_informational": false, - "exclude_low": false, - "exclude_medium": false, - "exclude_high": false, - "disable_color": false, - "legacy_ast": false -} + "detectors_to_exclude": "incorrect-equality,naming-convention", + "exclude_dependencies": true, + "exclude_informational": true, + "exclude_low": true, + "exclude_optimization": true, + "fail_on": "none", + "filter_paths": "(test/|node_modules/|\\@openzeppelin/|forge-std/|solady/)" +} \ No newline at end of file