Skip to content

Commit

Permalink
add slither
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed Jul 8, 2024
1 parent 79788a7 commit d0d1c96
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Slither Analysis

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 16
sarif: results.sarif
fail-on: high
continue-on-error : true
21 changes: 21 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"detectors_to_run": "abiencoderv2-array,array-by-reference,encode-packed-collision,incorrect-shift,name-reused,shadowing-state,uninitialized-state,uninitialized-storage,unprotected-upgrade,incorrect-return,storage-array,shadowing-abstract,write-after-write,constant-function-state,unused-return,variable-scope,redundant-statements,unimplemented-functions,unused-import,unused-state,dead-code,constable-states,external-function,immutable-states,var-read-using-this",
"exclude_informational": false,
"exclude_low": false,
"exclude_medium": false,
"exclude_high": false,
"disable_color": false,
"solc_remaps": [
"ds-test/=lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/ethereum-vault-connector/lib/openzeppelin-contracts/lib/erc4626-tests/",
"ethereum-vault-connector/=lib/ethereum-vault-connector/src/",
"forge-std/=lib/forge-std/src/",
"evk/=lib/euler-vault-kit/",
"reward-streams=lib/reward-streams/src",
"openzeppelin-contracts/=lib/reward-streams/lib/openzeppelin-contracts/contracts",
"@openzeppelin/=lib/openzeppelin-contracts/",
"@openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"crytic-properties/=lib/properties/contracts/"
],
"compile_force_framework": "foundry"
}
1 change: 1 addition & 0 deletions slither.db.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/core/lib/ErrorsLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.0;

library ErrorsLib {
error Reentrancy();
error ArrayLengthMismatch();
error InitialAllocationPointsZero();
error NegativeYield();
error InactiveStrategy();
Expand Down

0 comments on commit d0d1c96

Please sign in to comment.