Is your feature request related to a problem? Please describe.
Right now, I see that it always scans the entire repository regardless of whether it is a PR or not.
Describe the solution you'd like
We should only scan files that have changed.
I see that some people are already asking:
bridgecrewio/checkov#6777
It seems that with -f / --file you can pass N files: https://www.checkov.io/2.Basics/CLI%20Command%20Reference.html
I suppose @nvuillam that it would be to create a class for this linter that doesn't have one:
And handle the specific case with utils.is_pr() and use this -f / --file with linter.files.
cc @echoix
Describe alternatives you've considered
Scan the entire repository even if only one file has been changed in a PR, with the performance issues that this entails.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Right now, I see that it always scans the entire repository regardless of whether it is a PR or not.
Describe the solution you'd like
We should only scan files that have changed.
I see that some people are already asking:
bridgecrewio/checkov#6777
It seems that with
-f / --fileyou can pass N files: https://www.checkov.io/2.Basics/CLI%20Command%20Reference.htmlI suppose @nvuillam that it would be to create a class for this linter that doesn't have one:
megalinter/megalinter/descriptors/repository.megalinter-descriptor.yml
Line 11 in 9b98bf5
And handle the specific case with
utils.is_pr()and use this-f / --filewithlinter.files.cc @echoix
Describe alternatives you've considered
Scan the entire repository even if only one file has been changed in a PR, with the performance issues that this entails.
Additional context
Add any other context or screenshots about the feature request here.