Skip to content

Commit

Permalink
ci: fix slither job
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jul 3, 2024
1 parent 73afa64 commit b94c0bd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
workspace=$(jq -r '.name' packages/${{ matrix.dir }}/package.json)
yarn workspace "$workspace" run compile
- if: contains(needs.changed-files.outputs.modified_files, matrix.dir)
- if: contains(needs.changed-files.outputs.modified_files, matrix.dir) && matrix.dir != 'lean-imt'
name: Run slither
uses: crytic/slither-action@v0.4.0
id: slither
Expand All @@ -200,6 +200,17 @@ jobs:
slither-args: --filter-paths "test" --exclude-dependencies --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
target: packages/${{ matrix.dir }}

- if: contains(needs.changed-files.outputs.modified_files, 'lean-imt')
name: Run slither
uses: crytic/slither-action@v0.4.0
id: slither
with:
ignore-compile: true
fail-on: none
sarif: results.sarif
slither-args: --filter-paths "test" --hardhat-ignore-compile --exclude-dependencies --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
target: packages/lean-imt

- if: contains(needs.changed-files.outputs.modified_files, matrix.dir)
name: Upload SARIF files
uses: github/codeql-action/upload-sarif@v3
Expand Down

0 comments on commit b94c0bd

Please sign in to comment.