Skip to content

fix(tools): accept indentless workflow event lists - #4946

Open
autosur00 wants to merge 1 commit into
limitlessprojects:mainfrom
autosur00:bounty/46-hybrid-workflow-events
Open

autosur00 wants to merge 1 commit into
limitlessprojects:mainfrom
autosur00:bounty/46-hybrid-workflow-events

Conversation

@autosur00

Copy link
Copy Markdown

Fixes #4898.

The conflict-marker guard reported valid GitHub Actions event lists as malformed when the list items lined up with the top-level on: key. Allow event items in that context, including quoted names and inline comments. A new mapping key or document boundary ends the list, and misplaced shell lines still fail with their line numbers.

Thanks to @P0NDER0403 for the reproduction and proposed direction. OpenAI Codex assisted with implementation and validation. Submitted for the useful-improvements track in BOUNTY.md.

Validation

  • Conflict-marker tests: 30 passed. The original guard failed eight regression subcases.
  • actionlint 1.7.12: accepted the fixtures with plain, single-quoted and double-quoted on keys.
  • make check and git diff --check: passed.
  • cargo test --workspace --locked --quiet: 3,293 passed.
  • make corpus differential: 139/139 verdicts, 47/47 build-and-run cases and 92/92 rejection cases.

Tested on Linux amd64 with Go 1.26.9 and Rust 1.99.0.

@github-actions github-actions Bot added the bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) label Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify())

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tooling] Workflow checker rejects valid GitHub Actions event lists aligned with on

1 participant