Skip to content

Commit d270329

Browse files
Create .bandit.yml
add a strict bandit scanner config and see if it "just" works
1 parent 7a9a408 commit d270329

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.bandit.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# .bandit.yml
2+
# Strict configuration for Bandit to enforce comprehensive security checks.
3+
4+
# Define the directories to exclude from scanning.
5+
exclude_dirs:
6+
[]
7+
8+
# Specify files or directories to skip.
9+
skipped_files:
10+
[]
11+
12+
# Indicate the targets to scan.
13+
targets:
14+
- "."
15+
16+
# Configure plugins (tests).
17+
plugins:
18+
# Include all tests for strict scanning.
19+
include:
20+
- "*"
21+
# Exclude no tests.
22+
exclude:
23+
- ""
24+
25+
# Set the severity levels to report.
26+
# Including all levels ensures that even minor issues are reported.
27+
severity:
28+
- LOW
29+
- MEDIUM
30+
- HIGH
31+
32+
# Set the confidence levels to report.
33+
# Including all levels to catch all potential issues.
34+
confidence:
35+
- LOW
36+
- MEDIUM
37+
- HIGH
38+
39+
# Specify the output format for the reports.
40+
format: "txt"
41+
42+
# Include code snippets in the output for easier debugging.
43+
show_code: true
44+
45+
# Define profiles if needed.
46+
profiles:
47+
full_audit:
48+
include:
49+
- "*"
50+
exclude:
51+
- ""
52+
fast_audit:
53+
include:
54+
- "multicast/*"
55+
exclude:
56+
- "tests/*"
57+
58+
# Enable recursive scanning to cover all subdirectories.
59+
recursive: true
60+
61+
# Disable any inline skips to ensure all code is analyzed.
62+
inline_skips: false

0 commit comments

Comments
 (0)