diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml new file mode 100644 index 0000000..d1ae781 --- /dev/null +++ b/.github/workflows/slither.yml @@ -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