From 59894790de7eae8950ef010af114281f4e9fce69 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 24 Aug 2022 16:02:51 -0400 Subject: [PATCH] Validate lines and columns for Annotations (#2082) --- src/Runner.Worker/ActionCommandManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Runner.Worker/ActionCommandManager.cs b/src/Runner.Worker/ActionCommandManager.cs index 0bcde5f53..a705d67ed 100644 --- a/src/Runner.Worker/ActionCommandManager.cs +++ b/src/Runner.Worker/ActionCommandManager.cs @@ -585,6 +585,8 @@ namespace GitHub.Runner.Worker public void ProcessCommand(IExecutionContext context, string inputLine, ActionCommand command, ContainerInfo container) { + ValidateLinesAndColumns(command, context); + command.Properties.TryGetValue(IssueCommandProperties.File, out string file); command.Properties.TryGetValue(IssueCommandProperties.Line, out string line); command.Properties.TryGetValue(IssueCommandProperties.Column, out string column);