forked from CMTA/CMTAT
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.11 KB
/
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
41
42
43
44
45
name: Slither Analysis
on:
workflow_dispatch:
push:
branches: [dev, master, main, wrapped-tokens]
pull_request:
branches: [dev, master, main, wrapped-tokens]
env:
MAINNET_NODE: ${{ secrets.MAINNET_NODE }}
POLYGON_NODE: ${{ secrets.POLYGON_NODE }}
HOLESKY_NODE: ${{ secrets.HOLESKY_NODE }}
SEPOLIA_NODE: ${{ secrets.SEPOLIA_NODE }}
ARBITRUMTESTNET_NODE: ${{ secrets.ARBITRUMTESTNET_NODE }}
BASETESTNET_NODE: ${{ secrets.BASETESTNET_NODE }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
PRIVATE_KEY: ${{ secrets.DUMMY_PK }}
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 16
sarif: results.sarif
fail-on: none
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}