bug(kubernetes): inconsistent scan results for specific directory vs. entire project #7304
Labels
bug
Something isn't working
community
Community contribution
docker
Docker query
kubernetes
Kubernetes query
Expected Behavior
I have two folders that each contain a values.yaml and a Chart.yaml:
There is a high finding (CWE 798 Use of Hard-coded Credentials) in
ui/values.yaml
, this should be found when scanning the complete projectfolderProject1
as well as when only scanningProject1/ui
.When scanning everything I get a High finding in ui/values.yaml but when I only scan the ui folder the finding is missing.
Actual Behavior
When scanning the entire project directory the high severity finding is detected. However, when scanning the "ui" directory alone, the high severity finding in
values.yaml
is not detected(Formatted logs and samples helps us to better understand the issue)
See attached Project1-results.json and ui-results.json. I also attached the sourcecode as ZIP file.
Steps to Reproduce the Problem
docker run -t -v "/home/user/Project1/ui":/path checkmarx/kics scan -p /path -o "/path/" --report-formats "json" --ci --exclude-categories "Best practices" --disable-full-descriptions
docker run -t -v "/home/user/Project1":/path checkmarx/kics scan -p /path -o "/path/" --report-formats "json" --ci --exclude-categories "Best practices" --disable-full-descriptions
Specifications
code.zip
Project1-results.json
ui-results.json
The text was updated successfully, but these errors were encountered: