-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 999 Bytes
/
mythx.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
name: Mythx
on:
workflow_dispatch:
jobs:
mythx:
name: Submit to Mythx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install node dependencies
run: yarn install --frozen-lockfile
- name: Install pip3
run: |
python -m pip install --upgrade pip
- name: Install mythx CLI
run: |
pip3 install mythx-cli
- name: Install solc-select
run: |
pip3 install solc-select
- name: Install solc 0.8.16
run: |
solc-select install 0.8.16
solc-select use 0.8.16
- name: Submit code to Mythx
# use configs from .mythx.yml
run: mythx analyze
env:
MYTHX_API_KEY: ${{ secrets.MYTHX_API_KEY }}