Skip to content

Commit 507fd39

Browse files
committed
ci: add slither
1 parent 8ae8be1 commit 507fd39

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,26 @@ jobs:
5555
id: coverage
5656

5757
- uses: codecov/codecov-action@v3
58+
59+
slither-analyze:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v3
63+
64+
- name: Install foundry
65+
uses: foundry-rs/foundry-toolchain@v1
66+
with:
67+
version: nightly
68+
69+
- name: Run Slither
70+
uses: crytic/slither-action@main
71+
id: slither # Required to reference this step in the next step.
72+
with:
73+
fail-on: none # Required to avoid failing the CI run regardless of findings.
74+
sarif: results.sarif
75+
slither-args: --filter-paths "./lib|./test|./script" --exclude naming-convention
76+
77+
- name: Upload SARIF file
78+
uses: github/codeql-action/upload-sarif@v2
79+
with:
80+
sarif_file: ${{ steps.slither.outputs.sarif }}

0 commit comments

Comments
 (0)