fix(workflow-engine): Prevent ValueError for missing ActionTarget in serializer#119119
Open
sentry[bot] wants to merge 3 commits into
Open
fix(workflow-engine): Prevent ValueError for missing ActionTarget in serializer#119119sentry[bot] wants to merge 3 commits into
sentry[bot] wants to merge 3 commits into
@sentry/warden / warden: sentry-backend-bugs
completed
Jul 7, 2026 in 0s
1 issue
sentry-backend-bugs: Found 1 issue (1 medium)
Medium
TypeError when `target_identifier` is None for Sentry App action - `src/sentry/incidents/endpoints/serializers/workflow_engine_action.py:20`
The PR guards against target_type being None but the same obj.config.get(...) pattern is used unguarded on the next line: sentry_app_id = int(obj.config.get("target_identifier")) will raise TypeError: int() argument must be a string…not 'NoneType' if target_identifier is absent from config for a Sentry App action. Add a None guard identical to the one added for target_type.
⏱ 1m 8s · 121.3k in / 7.0k out · $0.33
Annotations
Check warning on line 20 in src/sentry/incidents/endpoints/serializers/workflow_engine_action.py
sentry-warden / warden: sentry-backend-bugs
TypeError when `target_identifier` is None for Sentry App action
The PR guards against `target_type` being `None` but the same `obj.config.get(...)` pattern is used unguarded on the next line: `sentry_app_id = int(obj.config.get("target_identifier"))` will raise `TypeError: int() argument must be a string…not 'NoneType'` if `target_identifier` is absent from config for a Sentry App action. Add a `None` guard identical to the one added for `target_type`.
Loading