Skip to content

refactor: begin splitting out syntax/sema error handling - #734

Merged
woodruffw merged 18 commits into
mainfrom
ww/warn-invalid-yaml
May 3, 2025
Merged

refactor: begin splitting out syntax/sema error handling#734
woodruffw merged 18 commits into
mainfrom
ww/warn-invalid-yaml

Conversation

@woodruffw

@woodruffw woodruffw commented May 1, 2025

Copy link
Copy Markdown
Member

WIP.

Starting with the workflow path; I need to handle the action path as well.

TODO:

  • Actually plumb the variants through and skip + warn on syntax errors instead of failing
  • Rethink the nested anyhow::Errors here (these are causing pain when nested/chained)
  • More tests

Closes #732.

Fixes #725.

Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw added bugfix Fixes a known bug refactor Refactoring tasks labels May 1, 2025
@woodruffw woodruffw self-assigned this May 1, 2025
woodruffw added 5 commits May 2, 2025 00:23
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Special-case for empty inputs.

Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw

Copy link
Copy Markdown
Member Author

The machinery of this is done, I just need to think more about how I want to do the skipping such that the current mess of collection code become DRYer.

@woodruffw woodruffw added this to the 1.7.0 milestone May 2, 2025
@woodruffw
woodruffw marked this pull request as ready for review May 3, 2025 00:27
@woodruffw
woodruffw enabled auto-merge (squash) May 3, 2025 04:21
@woodruffw
woodruffw merged commit fb8e3f6 into main May 3, 2025
@woodruffw
woodruffw deleted the ww/warn-invalid-yaml branch May 3, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a known bug refactor Refactoring tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] zizmor aborts on empty workflow files

1 participant