I need to run slither CI test by using the code below, using ignore-compile: true. It was not suitable for a monorepo scenario where the dependency's pnpm-lock file exists at the top level of the repository, but the target directory I want to analyze is not located at the top level of the repository.
name: Run Slither
uses: crytic/slither-action@v0.3.1
with:
ignore-compile: true
Here are the smart contract that I'm having this issue
--ignore-compile used, if something goes wrong, consider removing the ignore compile flag
ERROR:ContractSolcParsing:Impossible to generate IR for LibSort._toInts (scripts/libraries/LibSort.sol#469-474):
'str' object has no attribute 'type'
ERROR:SlitherSolcParsing:
Failed to generate IR for LivenessGuard_TestInit._initializeSafeTools. Please open an issue https://github.com/crytic/slither/issues.
LivenessGuard_TestInit._initializeSafeTools (test/safe-tools/SafeTestTools.sol#509-513):
singleton = new GnosisSafe()
proxyFactory = new GnosisSafeProxyFactory()
handler = new CompatibilityFallbackHandler()
Traceback (most recent call last):
-> this is the error message and the slither version is 0.10.0
I need to run slither CI test by using the code below, using ignore-compile: true. It was not suitable for a monorepo scenario where the dependency's pnpm-lock file exists at the top level of the repository, but the target directory I want to analyze is not located at the top level of the repository.
name: Run Slither uses: crytic/slither-action@v0.3.1 with: ignore-compile: true
Here are the smart contract that I'm having this issue
https://github.com/tokamak-network/tokamak-titan-canyon/blob/main/packages/tokamak/contracts-bedrock/scripts/libraries/LibSort.sol
https://github.com/tokamak-network/tokamak-titan-canyon/blob/main/packages/tokamak/contracts-bedrock/test/safe-tools/SafeTestTools.sol
--ignore-compile used, if something goes wrong, consider removing the ignore compile flag ERROR:ContractSolcParsing:Impossible to generate IR for LibSort._toInts (scripts/libraries/LibSort.sol#469-474): 'str' object has no attribute 'type' ERROR:SlitherSolcParsing: Failed to generate IR for LivenessGuard_TestInit._initializeSafeTools. Please open an issue https://github.com/crytic/slither/issues. LivenessGuard_TestInit._initializeSafeTools (test/safe-tools/SafeTestTools.sol#509-513): singleton = new GnosisSafe() proxyFactory = new GnosisSafeProxyFactory() handler = new CompatibilityFallbackHandler() Traceback (most recent call last):
-> this is the error message and the slither version is 0.10.0