From ef2ece300e71a30e8f4f59e5b26e21eea012d43b Mon Sep 17 00:00:00 2001 From: Yorke Rhodes Date: Wed, 13 Dec 2023 16:06:00 -0500 Subject: [PATCH] Fix slither CI action (#3054) --- .github/workflows/static-analysis.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 5dcf53bad9..147eb58779 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -6,6 +6,7 @@ on: branches: [main] paths: - 'solidity/**' + - '.github/workflows/static-analysis.yml' jobs: slither: @@ -21,10 +22,17 @@ jobs: with: path: | **/node_modules - .yarn/cache + .yarn key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} - - run: yarn workspaces focus @hyperlane-xyz/core + - name: yarn-install + run: yarn install + + - name: foundry-install + uses: onbjerg/foundry-toolchain@v1 + + - name: forge-build + run: cd solidity && forge build --build-info - name: Static analysis uses: crytic/slither-action@v0.3.0 @@ -34,6 +42,7 @@ jobs: slither-config: 'solidity/slither.config.json' sarif: results.sarif fail-on: none + ignore-compile: true - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v2