-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.1 KB
/
slither.yml
File metadata and controls
45 lines (40 loc) · 1.1 KB
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
43
44
45
# .github/workflows/slither.yml
name: Slither (Foundry)
on:
push:
branches: [main]
pull_request:
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Run Slither
id: slither
uses: crytic/slither-action@v0.4.1
with:
target: .
slither-config: slither.config.json
fail-on: medium
sarif: results.sarif
slither-args: --json slither-report.json
- name: Upload SARIF to Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
- name: Upload JSON report artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: slither-report
path: slither-report.json