do not trucate error message from template evaluation (#1038)

This commit is contained in:
eric sciple
2021-04-06 15:45:40 -05:00
committed by GitHub
parent be9632302c
commit d14881b970
3 changed files with 6 additions and 3 deletions

View File

@@ -311,7 +311,7 @@ namespace GitHub.Runner.Worker
var result = new TemplateContext
{
CancellationToken = CancellationToken.None,
Errors = new TemplateValidationErrors(10, 500),
Errors = new TemplateValidationErrors(10, int.MaxValue), // Don't truncate error messages otherwise we might not scrub secrets correctly
Memory = new TemplateMemory(
maxDepth: 100,
maxEvents: 1000000,