Skip to content

Wrapper suppresses exit code 2 even when it is an error #328

@hundt-corbalt

Description

@hundt-corbalt

In #125 the wrapper was updated to consider an exit code of 2 to be a success, because of a quirk of the plan command. But fmt can also return exit code 2, and it is not considered a success in that case. An example is if you call terraform fmt -check -recursive <dir> and <dir> is not present. In that case a GitHub action running that command will succeed (if you use the wrapper) even though the command failed.

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