-
Notifications
You must be signed in to change notification settings - Fork 12
86 lines (68 loc) · 2.42 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
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
name: "Security checks"
on:
pull_request:
branches:
- master
jobs:
security-tests-part-1:
name: "API Security tests - part 1"
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "20.0.0"
- name: Install yarn
run: npm install -g yarn
- name: Checkout repo
uses: actions/checkout@main
with:
submodules: "true"
- name: Install other dependencies
run: |
sudo apt-get update
sudo apt-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev
sudo apt install zsh -y
yarn install
- name: Install mythril
run: pip3 install mythril
- name: Run checks on Account API
run: make security_account_api
- name: Run checks on Market API
run: make security_market_api
- name: Run checks on Miner API
run: make security_miner_api
- name: Run checks on VerifReg API
run: make security_verifreg_api
security-tests-part-2:
name: "API Security tests - part 2"
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "20.0.0"
- name: Install yarn
run: npm install -g yarn
- name: Checkout repo
uses: actions/checkout@main
with:
submodules: "true"
- name: Install other dependencies
run: |
sudo apt-get update
sudo apt-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev
sudo apt install zsh -y
yarn install
- name: Install mythril
run: pip3 install mythril
- name: Run checks on Power API
run: make security_power_api
- name: Run checks on Datacap API
run: make security_datacap_api
- name: Run checks on Send API
run: make security_send_api
- name: Run checks on Precompiles API
run: make security_precompiles_api