Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Static Analysis
on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- 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@v2
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