Skip to content

fix: quote fail-on description in action.yml to fix YAML parse error#83

Merged
Tim-Pohlmann merged 4 commits into
mainfrom
fix/action-yml-colon-quote
Jul 4, 2026
Merged

fix: quote fail-on description in action.yml to fix YAML parse error#83
Tim-Pohlmann merged 4 commits into
mainfrom
fix/action-yml-colon-quote

Conversation

@Tim-Pohlmann

Copy link
Copy Markdown
Owner

Summary

  • feat: expose fail-on severity threshold in GitHub Action #82 added a fail-on input to action.yml whose description contains an unquoted colon (...non-zero exit: error, warning, or info), which YAML parses as a nested mapping key rather than plain text — breaking the composite action for anyone consuming it.
  • Quotes the description to fix the parse error.

Test plan

  • python3 -c "import yaml; yaml.safe_load(open('action.yml'))" succeeds locally
  • CI passes

🤖 Generated with Claude Code

Tim-Pohlmann and others added 3 commits July 3, 2026 22:56
The unquoted description "...non-zero exit: error, warning, or info"
contains a colon, which YAML parses as a nested mapping key instead of
plain scalar text, breaking the composite action.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Catches the class of bug fixed in this PR (a YAML parse error in
action.yml) before merge, instead of only surfacing it once a broken
action.yml is tagged and consumed via the floating v1 release tag.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Dolphin Check previously used Tim-Pohlmann/Dolphin@v1, which only
reflects the last release, so a broken action.yml on a branch was
invisible to CI until it was tagged. Using ./ exercises the PR's own
action.yml on every run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a YAML parsing breakage in the repository’s composite GitHub Action by quoting an input description that contains a colon, and adds CI coverage to catch similar YAML/schema issues earlier.

Changes:

  • Quote the fail-on input description in action.yml to prevent YAML from interpreting the colon as a mapping delimiter.
  • Update CI to run the action from the local checkout and add a job that validates action.yml and workflow YAML files with action-validator.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
action.yml Quotes the fail-on description to avoid YAML parse errors caused by an unquoted colon.
.github/workflows/ci.yml Runs the local action in CI and adds YAML validation via action-validator to prevent regressions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
Copilot review flagged that downloading the raw action-validator
binary via curl with no checksum verification is a supply-chain risk.
Switch to the maintainer's own published GitHub Action, pinned to a
commit SHA, and pin the binary version via its `version` input
instead of hardcoding a release URL.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@Tim-Pohlmann Tim-Pohlmann merged commit 7a08187 into main Jul 4, 2026
9 checks passed
@Tim-Pohlmann Tim-Pohlmann deleted the fix/action-yml-colon-quote branch July 4, 2026 07:35
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.

2 participants