fix(actions): avoid empty lines in block scalar to fix legacy YAML parser#62
Open
uwe-mayer wants to merge 2 commits into
Open
fix(actions): avoid empty lines in block scalar to fix legacy YAML parser#62uwe-mayer wants to merge 2 commits into
uwe-mayer wants to merge 2 commits into
Conversation
…rser The GitHub Actions legacy manifest parser fails on empty lines inside YAML block scalar values (env variables). The parser interprets bare empty lines as YAML keys rather than block scalar continuations. Replace the multi-line COMMENT_BODY env var with a printf-based single-line approach, avoiding all empty lines in the YAML structure. Signed-off-by: uwe-mayer <uwe.mayer01@sap.com>
There was a problem hiding this comment.
Pull request overview
Updates the issue-triage composite GitHub Action to avoid YAML constructs that break the GitHub Actions legacy manifest parser, addressing continued workflow failures when loading action.yaml.
Changes:
- Removes the
COMMENT_BODYYAML literal block scalar env var. - Inlines the comment body into the
gh issue commentcall via a single-lineprintfwith\nescapes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: uwe-mayer <uwe.mayer01@sap.com>
abhijith-darshan
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Issue Triage workflow is still failing even after PR #61, with the same error:
Root Cause
The fix in #61 replaced the heredoc with a
COMMENT_BODYenv variable using a YAML literal block scalar (|). However, the block scalar contained empty lines (lines with no characters at all) for paragraph breaks in the comment body.The GitHub Actions legacy manifest parser (
ActionManifestManagerLegacy) does not handle bare empty lines inside block scalar values correctly — it interprets them as potential YAML keys rather than block scalar continuations, causing the 'could not find expected :' error.Fix
Replace the multi-line block scalar env var approach with a single
printfcall inside therun:step. This keeps all content on a single YAML line with\nescape sequences for newlines, and avoids any empty lines in the YAML structure entirely.Supersedes
This supersedes PR #61.