-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solc-remaps in slither-config does not seem to work with foundry #11
Comments
Hi @entire, thanks for the report. The released version of slither-action has an extra call to crytic-compile that can cause these sorts of issues (eg. #3, #4). We have removed it on the main branch, so you can try that and see if it helps. It should be enough to specify Also, the main branch adds support for building Foundry projects directly, so you could also leverage foundry to do the build instead of relying on solc and manual remaps (I'm assuming "." has the foundry.toml file, add a - name: Slither
uses: crytic/slither-action@main |
Great, I will try it out as you've describe. Thanks. |
Also I'm assuming when you mention |
Yep, |
Following up on this. It worked great once I switched over to pulling from the latest |
Hi, I've tried to use my slither action is as follows: ` slither:
Is there something I need to change? I am using foundry as well
|
Hi @yohanelly95, if you are working on a foundry project and using and the slither-action@main, you do not need to install foundry on the workflow or run forge install anymore. The action also installs npm/yarn deps for you, as long as you have a package.json and a lockfile. You also don't need to specify remaps, as foundry takes care of that. Try something like this:
You mentioned this also happens when running locally, if that is the case please fill an issue on the |
Okay sure I will try this, but I did notice |
it should use forge automatically as long as there is a |
Yes thats the catch, I have both |
That looks like an issue on Slither itself and not the action, please file a new issue on the Slither repo, preferably with a link to the project to help reproduce it: https://github.com/crytic/slither/issues/new/choose |
Closing, as this should be fixed and ready for the next release |
Slither works locally, but slither actions on GitHub Actions cannot seem to find third party libs when working w/ Foundry
here is the
.slither.config.json
calling this from my root dir:
slither contracts/src --config-file contracts/.slither.config.json
works locallybut when I run it on GitHub actions, it can't find the paths and ends in:
here's my GitHub actions yaml
here's the error I encounter. it seems to not be able to find the right path
Using
The text was updated successfully, but these errors were encountered: