-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (30 loc) · 976 Bytes
/
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
name: Slither Static Analysis
# Runs only on PR merging to main
on:
pull_request:
branches: [ main ]
types: [ opened, reopened, synchronize, ready_for_review ]
workflow_dispatch:
jobs:
analyze:
runs-on: ubuntu-latest
# Do not run when PR is still a draft
if: ${{ !github.event.pull_request.draft }}
env:
commit_url: ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.pull_request.head.sha }}/
defaults:
run:
working-directory: evm
steps:
- uses: actions/checkout@v3
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
fail-on: none
slither-args: --checklist --show-ignored-findings --markdown-root ${{ env.commit_url }}
sarif: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}