Skip to content

Commit

Permalink
Slither Github Action Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Sep 23, 2021
1 parent 11e31bb commit 6a84188
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

name: Node.js CI


on:
push:

Expand Down Expand Up @@ -41,32 +40,25 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v1.4.4
with:
node-version: '12'
node-version: "12"
- uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: "3.8"
- name: Prepare environment
run: |
npm install -g ganache-cli@6.12.1
pip3 install solc-select
solc-select install 0.5.17
solc-select use 0.5.17
pip3 install slither-analyzer
# pip install -r requirements-dev.txt
# - name: Prepare contracts
# shell: bash
# run: |
# # npm run clone-packages
# npm run sec:flatten
npm install -g ganache-cli@6.12.1
pip3 install solc-select
solc-select install 0.5.17
solc-select use 0.5.17
pip3 install slither-analyzer
- name: Slither Static Analysis
uses: luisfontes19/slither-static-analysis-action@v0.3.2
with:
slither-version: '0.6.13'
slither-version: "0.6.13"
run-npm-install: true
high-threshold: 0
medium-threshold: 20
low-threshold: 30
optimization-threshold: 5
informative-threshold: 50
projectPath: "./contracts"
filterPath: "./contracts/Sovryn|./contracts/Openzeppelin"
projectPath: "./contracts/*.sol"
4 changes: 2 additions & 2 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"filter_paths": "./contracts/Sovryn|./contracts/Openzeppelin"
}
"filter_paths": "./contracts/Sovryn|./contracts/Openzeppelin"
}

0 comments on commit 6a84188

Please sign in to comment.