Skip to content

fix(action): run every validated check, whatever separates the names - #109

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/action-checks-input-20261023
Oct 23, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/action-checks-input-20261023

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

An adopter who wrote checks one name per line, the way the same action's exclude input is written, got a green job in which no check ran. The same happened with tabs or an empty value. The setup step validated names split on any whitespace, while each check step looked for ' audit ' with literal spaces in the raw input.

  • The setup step normalizes the names into a space-separated checks output, and the three check steps read that output.
  • An empty selection fails with an error naming the valid checks. Globbing is off while the list is split, and duplicates collapse.
  • An invalid audit-fail-on now fails even when audit is not selected. Before, it was silently ignored.
  • Docs: the checks and audit-fail-on rows in guides/adopting-the-checks.md, the input description in action.yml, and the changelog.

Closes #104

Evidence

  • Before: the old conditions (contains(format(' {0} ', inputs.checks), ' audit ')) can't match "audit\ndocs-links\n", so all three steps were skipped.

  • The new unit tests run the action's real setup script with bash. Against the old action.yml they fail 11 times:

    • newline, tab and duplicate lists aren't normalized;
    • empty lists pass;
    • the conditions read the raw input;
    • an invalid audit-fail-on passes.

    Against the new one they pass.

Verification

  • The five local checks passed on Windows 11 with Python 3.14.7: catalog OK; docs links 194; HTML navigation 205; 251 tests OK, 5 skipped; repo audit 0 findings.
  • The bash-based tests used Git Bash locally. They skip when no working bash is found.
  • The Action self-test in quality.yml gains two negative cases: a one-name-per-line list against the broken fixture, and checks: ' '. CI on this PR is the first live-runner run of both.
  • Accessibility and visual checks: not applicable.

Limitations

  • An explicitly empty checks: '' may be replaced by the input's default by the runner rather than reaching the script. That case was not observed on a live runner, so the self-test uses ' '.
  • Echoed path values in error annotations are unchanged. They come from the caller's own workflow.

🤖 Generated with Claude Code

The setup step split `checks` on any whitespace, but each check step looked
for the name between literal spaces in the raw input. A list written one name
per line, separated by tabs, or left empty therefore passed validation and ran
no checks at all, and the job went green.

The setup step now normalizes the names into a space-separated output that the
check steps read, fails when nothing is selected, disables globbing while it
splits, and rejects an invalid audit-fail-on even when audit is not selected.
The Action self-test gains a one-name-per-line case against the broken fixture
and an empty-list case, both of which must fail. Unit tests run the real setup
script with bash.

Closes #104

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@drevendev
drevendev merged commit 8923197 into master Oct 23, 2026
5 checks passed
@drevendev
drevendev deleted the beautifulrepo/action-checks-input-20261023 branch October 23, 2026 07:15
drevendev added a commit that referenced this pull request Oct 23, 2026
Combine #97's privacy disclosure changes with the independently
integrated #109 Action fixes and #110 link-safety corrections.
Preserve both histories without force-pushing.
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.

Action: a newline- or tab-separated checks input runs no checks and passes

1 participant