Skip to content

Possibility to get a non-zero exit code from the Audit command if keys are missing #766

@shikakov

Description

@shikakov

Thank you for the really helpful Audit command!

Currently, this command exits successfully, even if missing keys are found. It would be helpful to have an optional flag that forces the command to return a non-zero exit code when any missing keys are found. This would make it much easier to use the command in CI pipelines to automatically catch missing keys and fail the job. We tried to work around this by getting output from stderr, but the command currently outputs all logs, including messages like === Keys Audit === and ✅ all good!, to stderr.
As a result, we have to rely on matching specific strings like 🔴 Missing using regex, which is fragile and can be broken if the log format changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions