Skip to content

Commit

Permalink
Merge pull request #148 from OffchainLabs/slither-integration
Browse files Browse the repository at this point in the history
Add Slither to CI
  • Loading branch information
gzeoneth committed Mar 5, 2024
2 parents 0f88cf7 + 58b6741 commit b3df270
Show file tree
Hide file tree
Showing 3 changed files with 13,130 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Slither Analysis

on:
workflow_dispatch:
pull_request:

jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
sarif: results.sarif
fail-on: medium

- name: Upload SARIF file
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
7 changes: 7 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"exclude_dependencies": true,
"exclude_informational": true,
"exclude_low": true,
"exclude_optimization": true,
"filter_paths": "src/test-helpers/|src/mocks/|node_modules/"
}
Loading

0 comments on commit b3df270

Please sign in to comment.