fix(automation): address code review - path traversal fix and test marker

- Sanitise uploaded filenames with os.path.basename() to prevent path traversal
- Change TestWebhookDispatchIntegration marker from unit to integration

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-10 00:01:35 +00:00
parent ce2a76fb77
commit 6a83d51d88
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ class TestDeliverAutomationHookTask:
# ---------------------------------------------------------------------------
@pytest.mark.unit
@pytest.mark.integration
class TestWebhookDispatchIntegration:
"""Test that dispatch_webhook_event also triggers automation hooks."""