mirror of
https://github.com/actions/runner.git
synced 2025-12-14 13:43:33 +00:00
Capture telemetry when git errors on unsafe repository. (#1823)
This commit is contained in:
@@ -151,6 +151,11 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
}
|
||||
}
|
||||
|
||||
if (line.Contains("fatal: unsafe repository", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_executionContext.StepTelemetry.ErrorMessages.Add(line);
|
||||
}
|
||||
|
||||
// Regular output
|
||||
_executionContext.Output(line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user