-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.bandit.yml
More file actions
30 lines (27 loc) · 1.07 KB
/
Copy path.bandit.yml
File metadata and controls
30 lines (27 loc) · 1.07 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
# Bandit configuration file for Animation Workbench security scanning
# https://bandit.readthedocs.io/en/latest/config.html
exclude_dirs:
- ./test
- ./test/**
- animation_workbench/test
# Skip acceptable issues for this QGIS plugin:
skips:
# B101: assert statements - legitimate in tests
- B101
# B104: Binding to 0.0.0.0 - intentional for debug server (development only)
- B104
# B108: Hardcoded /tmp - acceptable for temporary file handling
- B108
# B110: Try/except/pass - acceptable for silent error handling in UI code
- B110
# B404: subprocess import - required for ffmpeg/imagemagick integration
- B404
# B603: subprocess without shell=True - this is the SECURE way to call processes
- B603
# B606: Process without shell - this is intentional and secure
- B606
# B607: Partial path - acceptable when calling known system tools (ffmpeg, convert)
- B607
# Note: High severity issues that MUST remain fixed:
# - B605: Shell injection - fixed by using glob/os.remove instead of os.system
# - B602: Shell injection via subprocess shell=True - not used