Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ArgumentOutOfRangeException in PowerShellPostAmpersandEscape. #2875

Merged
merged 1 commit into from Sep 21, 2023

Conversation

TingluoHuang
Copy link
Member

GitHub actions runner worker process crashed with error: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')
   at System.String.Substring(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex)
   at GitHub.DistributedTask.Logging.ValueEncoders.PowerShellPostAmpersandEscape(String value)
   at GitHub.DistributedTask.Logging.SecretMasker.AddValue(String value)
   at GitHub.Runner.Worker.Worker.InitializeSecretMasker(AgentJobRequestMessage message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)

@TingluoHuang TingluoHuang requested a review from a team as a code owner September 21, 2023 15:44
@TingluoHuang TingluoHuang enabled auto-merge (squash) September 21, 2023 16:25
@TingluoHuang TingluoHuang merged commit 67d7080 into main Sep 21, 2023
10 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/indexoutofrange branch September 21, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants