Skip to content

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

Closed

Description

@drevendev

Reader problem

An adopter who writes the checks input as a YAML block, the way the same action's exclude input is written, gets a green job in which no check ran at all. The same happens with an empty value. The adoption guide promises the opposite: "An unknown name fails the step instead of being skipped silently" (guides/adopting-the-checks.md:67).

Evidence

Observed on 2026-10-23 at master 1114ffe.

  • Validation (action.yml:60) runs for check in $CHECKS, which splits on any whitespace. A newline- or tab-separated list therefore passes validation.

  • Each check step is gated by contains(format(' {0} ', inputs.checks), ' audit ') (action.yml:68, :78 and :92), which needs a literal space on both sides of the name. With

    checks: |
      audit
      docs-links

    the value is "audit\ndocs-links\n". No condition matches, so all three steps are skipped and the job succeeds.

  • Tab-separated names, and checks: '', give the same result.

  • Reproduced by running the action's real bash blocks and emulating GitHub's contains/format semantics against a fixture with no README and a broken link. Not yet reproduced on a live runner.

Acceptance

  • The setup step normalizes checks into one space-separated step output, and the if: conditions read that output instead of the raw input.
  • An empty selection fails the step with an error that names the input.
  • quality.yml's Action self-test gains a negative case: a newline-separated list against the broken fixture must fail.
  • guides/adopting-the-checks.md says which separators are accepted.

Activity

  1. added
    bug
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions