From ad817bedd11149a7aefb07a7d6bd9c52bd44fb32 Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Wed, 8 Feb 2023 11:37:39 -0800 Subject: [PATCH] Correctly skip unexpected mappings --- actions-workflow-parser/src/templates/template-reader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions-workflow-parser/src/templates/template-reader.ts b/actions-workflow-parser/src/templates/template-reader.ts index e44a263..7d5bce0 100644 --- a/actions-workflow-parser/src/templates/template-reader.ts +++ b/actions-workflow-parser/src/templates/template-reader.ts @@ -133,7 +133,7 @@ class TemplateReader { else { this._context.error(mapping, "A mapping was not expected"); - while (this._objectReader.allowMappingEnd()) { + while (!this._objectReader.allowMappingEnd()) { this.skipValue(); this.skipValue(); }