-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
653d5a2
commit 49af942
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|