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 7b6c6af
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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/[email protected]
with:
node-version: 20
ignore-compile: false
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 7b6c6af

Please sign in to comment.