Skip to content

How to recursively scan all *.yaml files #103

@huornlmj

Description

@huornlmj

I don't see a recursive option to go automatically search all *.yaml files in the current dir and sub dirs. I've also tried xargs but for some reason find . -name "*.yaml" | xargs kubesec scan is only returning this output, which is not correct because I get a proper report if I manually specify any one of the files that exist:

[
  {
    "object": "Unknown",
    "valid": false,
    "message": "This resource is invalid, Kubernetes kind not found",
    "score": 0,
    "scoring": {}
  },
  {
    "object": "Network/flannel.default",
    "valid": false,
    "message": "This resource is invalid, unknown schema",
    "score": 0,
    "scoring": {}
  }
]

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