-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
26 lines (22 loc) · 728 Bytes
/
Copy pathentrypoint.sh
File metadata and controls
26 lines (22 loc) · 728 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
#!/bin/bash
set -e
CONTRACT_ADDRESS="$1"
WALLET_ADDRESS="$2"
RPC_URL="$3"
GITHUB_TOKEN="$4"
ENTERPRISE_KEY="$5"
echo "=========================================================="
echo "⚡ Solidity Security Scanner PRO v3.2"
echo "=========================================================="
echo "Engine: Slither + Foundry Fuzz + Solana/Rust + AI Validator"
export WALLET_ADDRESS
export RPC_URL
export GITHUB_TOKEN
export ENTERPRISE_KEY
if [ -z "$CONTRACT_ADDRESS" ]; then
echo "Scanning entire repository workspace..."
python /app/security_scanner.py --workspace "${GITHUB_WORKSPACE}"
else
echo "Scanning specific contract: $CONTRACT_ADDRESS"
python /app/security_scanner.py --address "$CONTRACT_ADDRESS"
fi