feat(lint-github-actions): add paths input to scope the audit - #79
Open
toiroakr wants to merge 1 commit into
Open
feat(lint-github-actions): add paths input to scope the audit#79toiroakr wants to merge 1 commit into
toiroakr wants to merge 1 commit into
Conversation
Lets callers pass a space- or newline-separated list of paths (e.g. a changed-files action output) so only those files are audited instead of the whole repository. Defaults to "." to preserve current behavior.
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.
Summary
pathsinput tolint-github-actions, forwarded to zizmor-action's owninputs. Defaults to.(whole repo), preserving current behavior.inputsusing unquoted shell word-splitting, sopathsaccepts either space- or newline-separated lists interchangeably — verified end-to-end against a separate test repository (single path, space-separated multi-path, and newline-separated multi-path, including a case where the broken file is not the first entry in the list).test-paths-filters-to-given-files) exercising the new input against the existing clean/unpinned-action fixtures.tj-actions/changed-files, and the empty-string-vs-omitted caveat (an explicitly emptypathsoverrides zizmor-action's own.default and makes zizmor fail with no paths to audit).