Skip to content

Bug: Action reports success when a required workflow fails to trigger due to "Invalid workflow file" #844

Description

@PrimaGerardoGullo

When a GitHub Actions workflow file is syntactically invalid (e.g., an undefined input in a reusable workflow), GitHub does not "run" the workflow and therefore does not report a "failure" status to the commit. Instead, it simply appear in the checks tab on the PR.

The wait-for-status-checks action currently treats this "missing" check as a success (or ignores it), which allows broken deployments to slip through if the workflow file itself is corrupted.

Steps to Reproduce

  1. Create a workflow (e.g., release-dev.yml) that is triggered on push.
  2. Create a PR that Introduce a syntax error (e.g., use an undefined input for a called workflow).
  3. Observe that the "Release dev" check is missing from the commit's status list.
  4. wait-for-status-checks proceeds as if all checks have passed.

Observed Behavior
The check simply disappears from the list rather than marking the commit as failed.

Expected Behavior
If a workflow file associated with is invalid, the action should ideally detect that a workflow failed to initialize or provide a way to fail if a "known" workflow name is missing from the status list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions