-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1009 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
name: Slither Analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 16
sarif: results.sarif
fail-on: none
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
#- name: Create/update checklist as PR comment
# uses: actions/github-script@v6
# if: github.event_name == 'pull_request'
# with:
# script: |
# const script = require('.github/scripts/comment')
# const header = '# Slither report'
# const body = `${{ steps.slither.outputs.stdout }}`
# await script({ github, context, header, body })