-
-
Notifications
You must be signed in to change notification settings - Fork 292
Description
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:
| - linter_name: checkov |
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.