From 8c8edcf37c5b8822e127f4cdcd32eb07e5bb01b6 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Thu, 23 Nov 2023 22:57:06 +0100 Subject: [PATCH] Add CI job to run slither [Slither](https://github.com/crytic/slither) is static analysis framework for Solidity contracts. --- .github/workflows/core.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/core.yaml b/.github/workflows/core.yaml index 7addece4a..2a03109f6 100644 --- a/.github/workflows/core.yaml +++ b/.github/workflows/core.yaml @@ -58,6 +58,30 @@ jobs: core/typechain/ if-no-files-found: error + core-slither: + needs: [core-build] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install Slither + env: + SLITHER_VERSION: 0.9.6 + run: pip3 install slither-analyzer==$SLITHER_VERSION + + - name: Download Build Artifacts + uses: actions/download-artifact@v3 + with: + name: core-build + path: core/ + + - name: Run Slither + run: slither . + core-test: needs: [core-build] runs-on: ubuntu-latest