-
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
cannot specify what file to run slither with foundry #18
Comments
Hi @antoncoding, thanks for the report! If you intend to use the foundry integration in slither, then the first invocation is the correct one; target should point to the folder containing You can work around this problem by adding dummy contracts to the files (eg As for your second approach, that will not use the Foundry integration; Slither will treat your folder as standalone solidity files. This means you'll need to take care of all the requirements so that For the first bit, it should suffice to add something like this to your workflow before the Slither action: - name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
run: forge install As for the |
thanks @elopez! I made it work with your suggestion on the second approach! really appreciate the fast response. |
I'm trying to add this action to my foundry project with the following structure:
Usually if i want to run slither on my project, i usually run:
But in the action config, the
target
seems to be the "root" that it looks for foundry.toml.If I do the following: (without target), the action failed because no valid file is specified:
Error: (it seems to find the foundry config correctly), but got the same error is i run
slither .
locally.If I do the following: (with
target
)I get an error that seems farther off:
My guess is that the action is trying to run
slither .
, but i might be wrong. Any help will be appreciated!The text was updated successfully, but these errors were encountered: