forked from Junirezz/YieldVault-RWA
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 829 Bytes
/
slither.yml
File metadata and controls
35 lines (29 loc) · 829 Bytes
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 Static Analysis
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
jobs:
slither:
name: Solidity / Slither scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Skip when no Solidity contracts are present
shell: bash
run: |
set -euo pipefail
if git ls-files '*.sol' | grep -q .; then
echo "Solidity files detected; Slither scanning is not configured for this repository layout."
echo "Add Solidity contracts (or update this workflow) before enabling Slither."
exit 1
fi
echo "No Solidity (.sol) files tracked in this repo — skipping Slither."