Skip to content

Commit

Permalink
ci: slither
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Jan 10, 2025
1 parent 5a70c19 commit f588e86
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Slither Analysis

on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: cp ./contracts/.env.example ./contracts/.env
- run: npm --prefix ./contracts ci --include=optional
- run: npm --prefix ./contracts install
- run: npm --prefix ./contracts run compile
- name: Run Slither
uses: crytic/slither-action@v0.4.0
with:
node-version: 20
ignore-compile: true
solc-version: "0.8.24"
slither-config: "contracts/.slither.config.json"
sarif: results.sarif
fail-on: none

4 changes: 4 additions & 0 deletions contracts/.slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"solc_remaps": ["@openzeppelin/=node_modules/@openzeppelin/"],
"filter_paths": "contracts/node_modules/|contracts/lib/|contracts/test/|fhevm-engine/|proto/"
}

0 comments on commit f588e86

Please sign in to comment.