Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow kubesec to scan a folder #249

Open
georgettica opened this issue Nov 10, 2021 · 1 comment
Open

allow kubesec to scan a folder #249

georgettica opened this issue Nov 10, 2021 · 1 comment

Comments

@georgettica
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I wanted to run kubesec on a folder, but kubesec can only run on one file at a time so I

find ./folder -type f -name \*yaml | xargs -n1 kubesec scan 

running

kubesec scan ./folder/*yaml

scans only the first file

Describe the solution you'd like
that I can provide to kubesec scan a folder (or a list of files) on which to run the scan

Describe alternatives you've considered

  • that a folder could be passed
  • that multiple files could be passed
@06kellyjac
Copy link
Member

06kellyjac commented Nov 16, 2021

#106 In progress but has race condition issues. Globbing will work for one level but for depth you'd need to use something to find all the files and add them to the end of kubesec scan e.g. kubesec scan A.yaml B.yaml C/D E/F/G/H.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants