-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.satori.yml
More file actions
44 lines (38 loc) · 1.32 KB
/
.satori.yml
File metadata and controls
44 lines (38 loc) · 1.32 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
settings:
name: "PySpector Tests"
description: PySPector positive and negative tests
image: rust:latest
cpu: 16384
memory: 32768
example: satori run ./ --output
install:
- export DEBIAN_FRONTEND=noninteractive; apt-get update >/dev/null 2>&1; apt-get install -qy python3 python3-pip python3-venv >/dev/null 2>&1
- pip install --break-system-packages -r requirements.txt --disable-pip-version-check --root-user-action=ignore
- pip install --break-system-packages . --disable-pip-version-check --root-user-action=ignore
- cargo build --release
- cp target/release/pyspector-api /usr/local/bin/
tests:
assertStdoutNotContains:
- "can't decode"
- "Expecting value"
- SyntaxWarning
- Traceback
positive:
scan:
- pyspector scan . --supply-chain
negative:
# Don't parse binaries as plugins
plugin_install:
- pyspector plugin install /bin/ls
scan_plugin-config:
- pyspector scan . --plugin-config=/etc/hostname
# Don't throw SyntaxWarnings
SyntaxWarning:
- pyspector scan --url=https://github.com/Instagram/LibCST
# Don't throw Tracebacks
Traceback:
- pyspector scan --url=https://github.com/google/python-fire
return_error:
assertReturnCodeNot: 0
url:
- pyspector scan --url=https://github.com.attacker.com/some/thing