-
Notifications
You must be signed in to change notification settings - Fork 230
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
ci: add slither integration #165
Conversation
Signed-off-by: Francisco de Borja Aranda Castillejo <[email protected]>
WalkthroughThe changes introduce a GitHub Actions workflow for running Slither static analysis on smart contracts in two specific projects ( Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/slither.yaml (1 hunks)
- slither.config.json (1 hunks)
Files skipped from review due to trivial changes (1)
- slither.config.json
Additional comments not posted (3)
.github/workflows/slither.yaml (3)
1-15
: Verify the necessity of wildcard branch specifier inpull_request
.The wildcard branch specifier (
*
) in thepull_request
trigger might cause the workflow to run for all branches, which may not be desirable. Consider narrowing it down to specific branches if appropriate.
16-28
: Verify matrix strategy and permissions.Ensure that the matrix strategy, which includes
zeta-app-contracts
andzevm-app-contracts
, covers all necessary projects. Also, verify that the permissions forcontents
(read) andsecurity-events
(write) are appropriate for the intended analysis.
30-59
: Verifycontinue-on-error
setting and step configurations.Ensure that the
continue-on-error
setting for theCompile contracts
andRun Slither
steps is appropriate for the workflow. Verify that each step, including checking out the code, setting up Node.js, installing dependencies, compiling contracts, running Slither analysis, and uploading SARIF files, is necessary and correctly configured.
Summary by CodeRabbit
slither.config.json
.