From 41bf9b3b956a995eaced8bedef1324c7376aca87 Mon Sep 17 00:00:00 2001 From: Luis Fontes Date: Thu, 4 Mar 2021 11:21:53 +0000 Subject: [PATCH 1/3] Add slither tests --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..65f4916 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +on: [push] + +jobs: + main_job: + runs-on: ubuntu-latest + name: Solidity Security + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Slither Static Analysis + uses: luisfontes19/slither-static-analysis-action@v0.3.1 + with: + slither-version: '0.6.13' + run-npm-install: true + high-threshold: 1 + medium-threshold: 1 + low-threshold: 3 + optimization-threshold: 3 + informative-threshold: 10 + projectPath: "." From 33874fa17d2a6049f6f84820d362adc3df72bda3 Mon Sep 17 00:00:00 2001 From: Luis Fontes Date: Thu, 4 Mar 2021 11:29:26 +0000 Subject: [PATCH 2/3] Update slither action thresholds --- .github/workflows/{main.yml => slither.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{main.yml => slither.yml} (87%) diff --git a/.github/workflows/main.yml b/.github/workflows/slither.yml similarity index 87% rename from .github/workflows/main.yml rename to .github/workflows/slither.yml index 65f4916..403de62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/slither.yml @@ -3,7 +3,7 @@ on: [push] jobs: main_job: runs-on: ubuntu-latest - name: Solidity Security + name: Solidity Security steps: - name: Checkout uses: actions/checkout@v2 @@ -15,6 +15,6 @@ jobs: high-threshold: 1 medium-threshold: 1 low-threshold: 3 - optimization-threshold: 3 + optimization-threshold: 5 informative-threshold: 10 projectPath: "." From 3193becc8d6e16646eeb6ea9d079b4fa9d729b31 Mon Sep 17 00:00:00 2001 From: Luis Fontes Date: Thu, 4 Mar 2021 12:49:35 +0000 Subject: [PATCH 3/3] Update action version --- .github/workflows/slither.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index 403de62..a405cc4 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -8,7 +8,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Slither Static Analysis - uses: luisfontes19/slither-static-analysis-action@v0.3.1 + uses: luisfontes19/slither-static-analysis-action@v0.3.2 with: slither-version: '0.6.13' run-npm-install: true