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