-
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
Make action compatible with custom plugin system #16
Comments
This adds an extra option, `slither-plugins`, that lets users provide a requirements.txt file to be installed alongside Slither. This can be used to install Slither plugins. Fixes: #16
I was thinking about a way to implement this. What about a way to provide a custom requirements file, to be installed after Slither? I left an untested draft in #21 if you want to see how it would look like. name: Slither Analysis
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# let's say plugins are bundled in the repository or checked out @ 'plugins/'
- uses: crytic/slither-action@dev-slither-plugins
with:
target: 'src/'
slither-plugins: 'plugins/requirements.txt' |
Would the plugin have to be available on pip? Usually, it would just be a single python file with a custom detector. |
Not necessarily, but it would have to be installable with pip (e.g. having the setup.py like in the linked example). Other than that, the requirements file could point to a local wheel, a folder or separate checked out repository, a (public) git or zip URL or so on. (I assumed you meant available on PyPI, let me know if I misunderstood) |
Hey @elopez! |
For more context: I would like to add additional detectors to the slither, e.g slitherin |
This adds an extra option, `slither-plugins`, that lets users provide a requirements.txt file to be installed alongside Slither. This can be used to install Slither plugins. Fixes: #16
@fextr I've merged the proposed changes with a bit more of documentation to the dev branch, you should be able to try it out if you want. Just write a pip requirements file specifying what to install (e.g. just a txt file saying
|
@elopez It works well for me. Thank you! |
@elopez howdy! can you release this feature, please? I prefer to avoid the |
@fextr released in v0.4.0 👍 |
Slither has a custom plugin system and it'd be nice to have it easily integrate into the github action by registering a file(s) and including those detectors in the run.
https://github.com/crytic/slither/tree/master/plugin_example
The text was updated successfully, but these errors were encountered: