Closed zozidalom closed 1 year ago
Hi @zozidalom, is your project stored on the repository root? If it's not the case, you will need to add the target
option to the action with the right folder.
- name: Slither code analysis
uses: crytic/slither-action@v0.2.0
with:
fail-on: high
target: folder/myproject
where folder/myproject/
in the repository contains your project files (things like package lock, hardhat config, foundry config, etc.)
Ohh so it does not inherit the working-directory of the job?
It does not work still after specifying the folder.
crytic_compile.platform.exceptions.InvalidCompilation: . does not exist (are you in the correct directory?)
My understanding is that setting a default working-directory
only applies to run steps, but not to actions, so you'll need to specify target
.
Are you trying to set slither action up in this PR? I see you added target
to another action instead of the slither one, let me know if it works after fixing that.
Yes, exactly, that PR
I'm assuming this got resolved, feel free to open a new issue if you encounter any other issues!
Hi, How to fix this issue?
My code:
Error: