Skip to content

Commit 69300ce

Browse files
committed
fix(ZMS): guard SARIF region fixup against non-integer values
Reject string or missing Psalm coordinates before comparing to 1 so SARIF normalization no longer crashes on upload.
1 parent 3551f82 commit 69300ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236
continue
237237
for key in ("startLine", "startColumn", "endLine", "endColumn"):
238238
value = region.get(key)
239-
if value is None or value < 1:
239+
if not isinstance(value, int) or value < 1:
240240
region[key] = 1
241241
fixed_regions += 1
242242

0 commit comments

Comments
 (0)