Skip to content

Commit

Permalink
Use Slither Action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
naszam authored Mar 17, 2022
1 parent 503a14d commit 50deb01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 42 deletions.
49 changes: 8 additions & 41 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,16 @@
name: Slither

on:
push:
branches:
- master
pull_request:
on: [push, pull_request]

jobs:
slither:
analyze:
name: Slither
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 12

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache YARN dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install node dependencies
run: yarn install --frozen-lockfile
- name: Checkout repository
uses: actions/checkout@v2

- name: Install pip3
run: |
python -m pip install --upgrade pip
- name: Install slither
run: |
pip3 install slither-analyzer
- name: Run Slither
run: slither .
- name: Run Slither
uses: crytic/[email protected]
with:
node-version: 12
Loading

0 comments on commit 50deb01

Please sign in to comment.