Skip to content

Commit

Permalink
chore: add slither
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Feb 1, 2024
1 parent 40303d5 commit 88d5fd6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Slither Analysis
on:
push:
branches:
- master
pull_request:

jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Slither analysis
uses: crytic/[email protected]
with:
fail-on: 'medium'
5 changes: 1 addition & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@
[submodule "lib/erc4626-tests"]
path = lib/erc4626-tests
url = https://github.com/a16z/erc4626-tests
branch = main
[submodule "lib/properties"]
path = lib/properties
url = https://github.com/crytic/properties
branch = main
1 change: 0 additions & 1 deletion lib/properties
Submodule properties deleted from bb1b78
4 changes: 4 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"detectors_to_exclude": "naming-convention,unused-return",
"filter_paths": "(lib/|src/test)"
}

0 comments on commit 88d5fd6

Please sign in to comment.