Skip to content

Commit 85a3aa0

Browse files
authored
Merge pull request #79 from OffchainLabs/slither-integration
Slither integration
2 parents f13d954 + 669927f commit 85a3aa0

File tree

5 files changed

+2054
-111108
lines changed

5 files changed

+2054
-111108
lines changed

.github/workflows/slither.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Slither Analysis
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
7+
jobs:
8+
analyze:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Run Slither
14+
uses: crytic/slither-action@v0.3.1
15+
id: slither
16+
with:
17+
sarif: results.sarif
18+
fail-on: medium
19+
20+
- name: Upload SARIF file
21+
if: always()
22+
uses: github/codeql-action/upload-sarif@v3
23+
with:
24+
sarif_file: ${{ steps.slither.outputs.sarif }}

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
url = https://github.com/foundry-rs/forge-std
44
[submodule "lib/nitro-contracts"]
55
path = lib/nitro-contracts
6-
url = git@github.com:OffchainLabs/nitro-contracts.git
7-
branch = v1.1.0
6+
url = https://github.com/OffchainLabs/nitro-contracts.git
7+
branch = v1.2.1

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ build
33
coverage
44
deployments
55
dist
6-
slither.db.json
76
lib
87
out

slither.config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"exclude_dependencies": true,
3+
"exclude_informational": true,
4+
"exclude_low": true,
5+
"exclude_optimization": true,
6+
"filter_paths": "contracts/tokenbridge/test|node_modules/"
7+
}

0 commit comments

Comments
 (0)