diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index d5a6f61b..7db1c4d8 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -13,17 +13,27 @@ jobs: contents: read security-events: write steps: - - name: Checkout repository - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Foundry + uses: onbjerg/foundry-toolchain@v1 + with: + version: nightly + + - name: Build project + working-directory: ./ + run: forge build --build-info --skip test script - name: Run Slither uses: crytic/slither-action@v0.3.0 id: slither with: + ignore-compile: true node-version: 16 sarif: results.sarif fail-on: none - slither-config: slither.config.json - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v2 diff --git a/slither.config.json b/slither.config.json deleted file mode 100644 index 53bbdfb0..00000000 --- a/slither.config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "filter_paths": "^(?!.*lib/|.*\\.t\\.sol$)" -}