Repository navigation
68 lines (56 loc) · 1.72 KB
/
Copy pathsecurity.yml
File metadata and controls
68 lines (56 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Security
# Phase 3.3 pre-audit pass: static analysis on every PR. Reports are non-blocking
# until the Phase 4 mainnet gate (then: fail on HIGH). Triage of current findings
# lives in infra/security/pre-audit-triage.md; update it when findings change.
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Slither
uses: crytic/slither-action@v0.4.1
id: slither
continue-on-error: true
with:
target: infra/contracts/
solc-version: 0.8.28
fail-on: none
slither-args: --exclude-dependencies --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: slither-report
path: |
**/slither.*
if-no-files-found: ignore
aderyn:
runs-on: ubuntu-latest
defaults:
run:
working-directory: infra
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install aderyn
run: npm install -g @cyfrin/aderyn
- name: Run aderyn
run: aderyn .
- name: Summarize
run: |
echo "## Aderyn findings" >> "$GITHUB_STEP_SUMMARY"
sed -n '/# Issue Summary/,/^# /p' report.md >> "$GITHUB_STEP_SUMMARY" || true
grep -E "^## H-" report.md >> "$GITHUB_STEP_SUMMARY" || true
- name: Upload report
uses: actions/upload-artifact@v4
with:
name: aderyn-report
path: infra/report.md