From 2de7f46e615d451059c422fc171bdcf99ac71a52 Mon Sep 17 00:00:00 2001 From: Reuben Rodrigues Date: Mon, 8 Nov 2021 01:24:27 -0800 Subject: [PATCH] CI: Slither analysis --- .github/workflows/build.yml | 4 ++-- .github/workflows/slither.yml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/slither.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ecb989f..b729e2e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ -name: Build +name: CI on: [push] jobs: - test: + Tests: runs-on: ubuntu-latest steps: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml new file mode 100644 index 00000000..a947f73a --- /dev/null +++ b/.github/workflows/slither.yml @@ -0,0 +1,22 @@ +name: Security + +on: [push] + +jobs: + main_job: + runs-on: ubuntu-latest + name: Slither Security + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Slither Static Analysis + uses: Tenderize/slither-static-analysis-action@master + with: + slither-version: '0.8.1' + run-npm-install: true + high-threshold: 1 + medium-threshold: 1 + low-threshold: 1 + optimization-threshold: 1 + informative-threshold: 10 + projectPath: "." \ No newline at end of file