Multiple --file options given results in duplicate findings
Created by: KevinHock
Describe the bug If you give checkov e.g. --file twice, the first file you give will have double the findings (repeats). There is also no check for uniqueness among the outputted findings.
To Reproduce Steps to reproduce the behavior:
On any 2 files that have (e.g. 1 failing check in each file):
Run
checkov --file fileA.tf --file fileB.tf
and you will notice fileA
findings are duplicated.
checkov --file fileB.tf --file fileA.tf
and you will notice fileB
findings are duplicated.
This is also true for PASSED findings.
Expected behavior No duplicated findings.
Checkov version:
- Checkov Version
1.0.726
- Ubuntu
This is in the same ballpark as #115, checkov directory switch not repeatable
, but a different kind of bug.