-
Notifications
You must be signed in to change notification settings - Fork 888
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
Add Slither analysis to pull requests #273
base: main
Are you sure you want to change the base?
Conversation
Seriously cool! that is a lot of results though >.> i removed a couple that were obv from the severe ones / that won't get replaced I'd check out the name duplications and if not just ignore all and pray |
From @ind-igo :
Right now, the slither output is not showing up under the security tab. I think we need to enable code scanning for that to work: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository @ind-igo @appleseed-iii if you have admin access to the repo, can you enable that? Secondly, I can't see a way to disable a failing check (code scanning results) causing the failure of the entire build. If we can get the security reports running, I can see if it's possible to remove the Slither output as a "check" on the PR. |
Wait, disabling the failing checks you mean as in stop slither output because of the old contracts? Yeah it's a problem. I mean I don't see the purpose of actually changing the code in repo since the code should reflect what is actually deployed. Is there no config with which you can specify file paths to check out contracts? |
just fyi, I'll leave this to @ind-igo and the rest of ya'll to decide so I don't step on any of this team's processes. |
@PARABRAHMAN0 @ind-igo I'm looking at how we can reduce the number of warnings, a concern that was raised earlier. One suggestion was to not analyse contracts that have already been deployed. This would require maintaining a list of filenames as an exclude list, and would require devs to remember to update it after deployment. Is that feasible? The other options is slither's triage mode: https://github.com/crytic/slither/wiki/Usage#triage-mode Which would you prefer? |
Slither will be run on each pull request and listed under the "Checks" section.
e.g. https://github.com/0xJem/olympus-contracts/pull/1/checks?check_run_id=5675243069