Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Nov 30, 2023
1 parent 653d5a2 commit 49af942
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,28 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
# This is a workaround for the fact that the latest version of crytic-compile
# does not respect the `target` argument for foundry compiles. Instead of
# telling slither to look inside `core`, we need to copy `core` to the root.
#
# Should be fixed after: https://github.com/crytic/crytic-compile/pull/515
submodules: recursive
# workaround (continued)
- name: Copy core to root
run: |
rm -rf docs periphery foundry.toml package.json remappings.txt yarn.lock
git mv core/lib lib
cp -r ./core/* ./
rm -rf core
- name: Run Slither
uses: crytic/[email protected]
id: run-slither
with:
target: 'core/'
# target: './core/'
fail-on: none
slither-args: --config-file core/slither.config.json
slither-version: '0.9.6'
# slither-args: --config-file core/slither.config.json
sarif: slither.results.sarif

- name: Upload SARIF file
Expand Down

0 comments on commit 49af942

Please sign in to comment.