Skip to content

Commit

Permalink
ci: slither
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Jan 7, 2025
1 parent 1854388 commit 3b16624
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Slither analysis
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
analysis:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: pnpm/action-setup@v3
with:
version: 8
- run: cp .env.example .env
- run: pnpm install
- run: pnpm compile
- name: Run Slither
uses: crytic/slither-action@v0.4.0
with:
target: "contracts"
node-version: 20
ignore-compile: true
solc-version: "0.8.24"
slither-config: ".slither.config.json"
3 changes: 3 additions & 0 deletions .slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"solc_remaps": ["@openzeppelin/=node_modules/@openzeppelin/", "fhevm/=node_modules/fhevm"]
}

0 comments on commit 3b16624

Please sign in to comment.