forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (36 loc) · 1.08 KB
/
slither.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Slither Analysis'
on:
workflow_dispatch:
pull_request:
push:
branches:
- develop
jobs:
slither-analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9
- name: Install slither-analyzer
run: python -m pip install slither-analyzer==0.10.2
- name: Run Slither
id: slither
run: |
slither packages/contracts-bedrock \
--sarif results.sarif \
--triage-database packages/contracts-bedrock/slither.db.json \
--config-file packages/contracts-bedrock/slither.config.json
echo "sarif=results.sarif" >> $GITHUB_OUTPUT
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: ${{ steps.slither.outputs.sarif }}