Skip to content

Commit

Permalink
Fix slither CI action (#3054)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes authored Dec 13, 2023
1 parent 7919417 commit ef2ece3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: [main]
paths:
- 'solidity/**'
- '.github/workflows/static-analysis.yml'

jobs:
slither:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ef2ece3

Please sign in to comment.