From 6e016b1cfbec5cbfb373d15d0f474720a43fe3bb Mon Sep 17 00:00:00 2001 From: Peter Ibekwe Date: Wed, 3 Jun 2026 17:45:33 -0700 Subject: [PATCH] Fix bandit nosec marker for CI pipeline --- python/packages/core/agent_framework/_mcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/core/agent_framework/_mcp.py b/python/packages/core/agent_framework/_mcp.py index f56e7fc420..c9fbd564e4 100644 --- a/python/packages/core/agent_framework/_mcp.py +++ b/python/packages/core/agent_framework/_mcp.py @@ -1563,7 +1563,7 @@ class MCPTool: raise ToolExecutionException(text or str(parsed)) return parser(fallback_result) - assert task_id is not None # noqa: S101 - protected by the branch above + assert task_id is not None # noqa: S101 # nosec B101 - protected by the branch above # Phase 2: poll until terminal status, then fetch payload. Never re-issue tools/call # past this point; reconnect-and-retry only against the same task_id.