Skip to content

Commit 426b617

Browse files
authored
Fix bandit B108 false positive warnings in agent examples (#4107)
1 parent abe1f12 commit 426b617

File tree

2 files changed

+3
-3
lines changed
  • examples/agent_framework_integrations

2 files changed

+3
-3
lines changed

examples/agent_framework_integrations/crewai/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
environment={
2121
"OPENAI_API_KEY": os.getenv("OPENAI_API_KEY"),
2222
# Set home directory to a writable location for CrewAI storage
23-
"HOME": "/tmp",
23+
"HOME": "/tmp", # nosec B108 - Docker env var, not insecure file operation
2424
# Alternative: override the specific appdirs behavior
25-
"XDG_DATA_HOME": "/tmp/.local/share",
25+
"XDG_DATA_HOME": "/tmp/.local/share", # nosec B108 - Docker env var, not insecure file operation
2626
},
2727
)
2828

examples/agent_framework_integrations/haystack/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
environment={
1919
"OPENAI_API_KEY": os.getenv("OPENAI_API_KEY"),
2020
# Set home directory to a writable location for Haystack storage
21-
"HOME": "/tmp",
21+
"HOME": "/tmp", # nosec B108 - Docker env var, not insecure file operation
2222
# Override Haystack-specific environment variables
2323
"HAYSTACK_CONTENT_TRACING_ENABLED": "false",
2424
"HAYSTACK_TELEMETRY_ENABLED": "false",

0 commit comments

Comments
 (0)