From 4ee8288e99ed54779ee4cc20be85c88167e24036 Mon Sep 17 00:00:00 2001 From: Bernardo Codesido Date: Wed, 20 Mar 2024 14:19:52 +0100 Subject: [PATCH] Add slither --- .github/workflows/slither.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/slither.yml diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml new file mode 100644 index 0000000..6eafc3a --- /dev/null +++ b/.github/workflows/slither.yml @@ -0,0 +1,22 @@ +name: Slither Analysis +on: [push] +jobs: + analyze: + runs-on: ubuntu-latest + permissions: + security-events: write + steps: + - uses: actions/checkout@v3 + + - name: Run Slither + uses: crytic/slither-action@v0.3.0 + id: slither + with: + sarif: results.sarif + fail-on: none + target: contracts/ + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.slither.outputs.sarif }}