-
Notifications
You must be signed in to change notification settings - Fork 42
40 lines (36 loc) · 1010 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
40
name: Slither Analysis
on:
pull_request: {}
workflow_dispatch: {}
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16.x
- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: uns-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
if: steps.cache.outputs.cache-hit != 'true'
- run: yarn compile
- name: Run Slither
uses: crytic/slither-action@main
continue-on-error: true
id: slither
with:
node-version: 16
slither-args: "--ignore-compile --hardhat-artifacts-directory ./.artifacts --config-file .slither.json"
sarif: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}