-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (50 loc) · 1.39 KB
/
slither.yaml
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: Static Analysis
on:
push:
branches: [main]
paths:
- "contracts/**"
- ".github/workflows/slither.yaml"
pull_request:
branches: [main]
paths:
- "contracts/**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn compile
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo snap install solc
python -m pip install --upgrade pip
pip install slither-analyzer==0.8.1 solc-select==0.2.1
- name: Summary of static ananlysis
run: |
slither . --print human-summary
- name: Contract summary of static ananlysis
run: |
slither . --print contract-summary
- name: Function summary
run: |
slither . --print function-summary
- name: Inheritance
run: |
slither . --print inheritance
- name: Data dependency
run: |
slither . --print data-dependency