Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/crewai/src/crewai/flow/runtime/_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _compile_handler(self) -> Callable[..., Any]:
# as function arguments. This is still arbitrary trusted Python execution,
# so it remains disabled by default behind `CREWAI_ALLOW_FLOW_SCRIPT_EXECUTION`
namespace: dict[str, Any] = {"__name__": filename}
exec(compile(module, filename, "exec"), namespace) # nosec B102 # noqa: S102
exec(compile(module, filename, "exec"), namespace) # nosec B102 # noqa: S102 # nosemgrep: python.lang.security.audit.exec-detected.exec-detected
return cast(Callable[..., Any], namespace["_flow_script"])


Expand Down