Open ittaigilat-cx opened 1 year ago
Hi @ittaigilat-cx, how are you ? I was looking into this issue opened by you, and I have a question why not use the flag --queries-path ? Best regards, João
Hi @ittaigilat-cx ,
Do you still have the same issue with the latest version (v1.7.12)?
I have two kics repos on my laptop at .../kics/... and .../kics2/... I am working on kics2 but I get queries from kics/assets/queries/... running (instead of those from kics2)
Expected Behavior
kics2 must run queries from kics2/assets/queries
Actual Behavior
kics2 runs queries from kics/assets/queries
Steps to Reproduce the Problem
as explained above
Specifications
The issue is in the implementation of function GetDefaultQueryPath(lines 133-154) in internal/console/helpers/helpers. go. In line 142 a directory 'kics' is assumed to be a part of the default kics deployment location, when the deployment can be placed in a directory called 'kuku'. To fix this code and make it more robust I recommend searching for the 'assets/queries' relative path.
Here is the test log for running TestHelpers_GetDefaultQueryPath: