-
Notifications
You must be signed in to change notification settings - Fork 110
59 lines (47 loc) · 1.4 KB
/
slither.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Slither
on:
push:
branches: [master]
paths:
- "contracts/**"
- ".github/workflows/slither.yml"
pull_request:
branches:
- "*"
paths:
- "contracts/**"
env:
ETH_NODE_URL: ${{ secrets.ETH_NODE_URL }}
jobs:
slither:
name: Slither Analysis
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16.20.0"
- name: Setup SSH to install dependencies
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install NPM dependencies
run: npm ci
- name: Compile Contracts
run: npm run compile
- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Slither
run: |
python -m pip install --upgrade pip
pip3 install slither-analyzer==0.8.2 solc-select==0.2.1
- name: Summary of static analysis
run: |
slither . --print human-summary --ignore-compile --hardhat-artifacts-directory ./build/artifacts --config-file slither.config.json
- name: High/Med/Low issues
run: |
slither . --ignore-compile --hardhat-artifacts-directory ./build/artifacts --config-file slither.config.json