Skip to content

Action never failed even if error level issues are detected & fail_on_error is set to true #103

Closed

Description

@fharper

I have the level set to error for my custom vocab, and substitution. When running the GitHub Action, vale report the issues with the proper error level. I also have fail_on_error set to true. No matter these, the action always succeed, and never fail. Here's the .vale.ini for reference.

I assume I either miss something, didn't use the argument properly or it's a bug. Any idea what is happening here?

Activity

  1. karl-johan-grahn commented on Aug 11, 2023

    @karl-johan-grahn

    @jdkato any idea?

  2. fharper commented on Aug 23, 2023

    @fharper
    Author

    Seems like it may be a reviewdog issue, and not vale since it's a reviewdog option.

    If I'm not wrong, you can close this issue. I posted my workaround in the reviewdog issue reviewdog/reviewdog#1408

  3. jdkato commented on Aug 2, 2026

    @jdkato
    Member

    Your workflow runs on: [push], and the action's default reporter is PR-only. The pinned reviewdog (0.17.0) returned early on any non-PR event — reviewdog: this is not PullRequest build — so nothing was reported and nothing failed, regardless of fail_on_error.

    Reproduced with your config, then re-run on the version the action now installs:

    reviewdog 0.17.0, push event -> exit 0 | this is not PullRequest build
    reviewdog 0.21.0, push event -> exit 1 | found at least one issue
    

    Fixed on refresh by the reviewdog upgrade, along with a separate fail_on_error fix (#84). Until it ships, reporter: github-check works on push events.

  4. fharper commented on Aug 5, 2026

    @fharper
    Author

    Thanks for the reply, but I went another way since it's an old issue. Hopefully the answer will be useful to others :)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions