Skip to content

Linter - Warning/Info on usage of command #1640

@syrull

Description

@syrull

We usually do not want to use the command object in MQL, but sometimes we have to. I was thinking that maybe we should make the linter give us a warning for the following situation:

We have a policy that runs "command" in the MQL, I would want to see the linter suggesting me to use the filters: mondoo.capabilities.contains("run-command") filter within the policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions