-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (88 loc) · 2.26 KB
/
security.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Security-checks
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
unittests:
runs-on: ubuntu-latest
steps:
- 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
- name: Run tests
shell: bash
run: |
npm run test
slither:
runs-on: ubuntu-latest
steps:
- 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
pip3 install slither-analyzer
- name: Prepare contracts
shell: bash
run: |
npm run sec:flatten
- name: Run slither
shell: bash
run: |
npm run sec:slither >slither_report.txt 2>&1 || true
- name: Store the report
uses: actions/upload-artifact@v2
with:
name: slither-report
path: ./slither_report.txt
- name: Check the report
shell: bash
run: |
sh ./security/slither/slither-check-report.sh
echidna:
runs-on: ubuntu-latest
steps:
- 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: |
pip3 install slither-analyzer
npm install
npm run sec:load-echidna
- name: Prepare contracts
shell: bash
run: |
npm run sec:flatten-echidna
- name: Run echidna
shell: bash
run: |
export PATH=.:$PATH
npm run sec:echidna >echidna_report.txt 2>&1 || true
- name: Store the report
uses: actions/upload-artifact@v2
with:
name: echidna-report
path: ./echidna_report.txt
- name: Check the report
shell: bash
run: |
sh ./security/echidna/echidna-check-report.sh