From 507fd398914cf6ef7c56afa78f6b0efe0cd87d0e Mon Sep 17 00:00:00 2001 From: Varun Srinivasan Date: Sat, 4 Mar 2023 12:54:33 -0800 Subject: [PATCH] ci: add slither --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec4833b6..098cd6c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,3 +55,26 @@ jobs: id: coverage - uses: codecov/codecov-action@v3 + + slither-analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Run Slither + uses: crytic/slither-action@main + id: slither # Required to reference this step in the next step. + with: + fail-on: none # Required to avoid failing the CI run regardless of findings. + sarif: results.sarif + slither-args: --filter-paths "./lib|./test|./script" --exclude naming-convention + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.slither.outputs.sarif }}