-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (42 loc) · 1.14 KB
/
security.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
name: Security-checks
on:
push:
branches: [ development ]
pull_request:
jobs:
main_job:
runs-on: ubuntu-latest
name: Solidity Security
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '12'
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Prepare environment
run: |
npm install -g [email protected]
pip3 install solc-select
solc-select install 0.8.4
solc-select use 0.8.4
pip3 install slither-analyzer
pip install -r requirements-dev.txt
- name: Prepare contracts
shell: bash
run: |
npm run sec:flatten
rm package.json
- name: Slither Static Analysis
uses: luisfontes19/[email protected]
with:
slither-version: '0.6.13'
run-npm-install: true
high-threshold: 0
medium-threshold: 21
low-threshold: 30
optimization-threshold: 999
informative-threshold: 999
projectPath: "./flattened"