Open jycamier opened 1 year ago
Hello, @jycamier
Thank you so much for being always active 🚀
KICS remediate command does not support --query-path
because we did kind of a PoC first:
Usage:
kics remediate [flags]
Flags:
-h, --help help for remediate
--include-ids strings which remediation (similarity ids) should be remediated
example "f6b7acac2d541d8c15c88d2be51b0e6abd576750b71c580f2e3a9346f7ed0e67,6af5fc5d7c0ad0077348a090f7c09949369d24d5608bbdbd14376a15de62afd1" (default [all])
--results string points to the JSON results file with remediation
Global Flags:
(...)
However, custom query support makes total sense. Thank you so much for bringing up this matter. PR #5944 will support custom queries for the KICS remediate command 😊
Usage:
kics remediate [flags]
Flags:
-h, --help help for remediate
--include-ids strings which remediation (similarity ids) should be remediated
example "f6b7acac2d541d8c15c88d2be51b0e6abd576750b71c580f2e3a9346f7ed0e67,6af5fc5d7c0ad0077348a090f7c09949369d24d5608bbdbd14376a15de62afd1" (default [all])
--queries strings paths to directory with queries (default [./assets/queries])
--results string points to the JSON results file with remediation
Global Flags:
(...)
Hi @rafaela-soares Thank you !
As there's a results.json to make remediation, IMHO, the most consistant way to make the feature is to stock the absolute path of your query maybe in the results.json ?
What do you think about it ?
Hello @jycamier
Thank you so much for the suggestion. I will talk to the team about it.
At the moment, the JSON report does not provide any information regarding the query path.
Hello again @jycamier
We will discuss this question at the next KICS Community Meeting (3 November, 4 pm Lisbon). It would be great if you could attend 😊
I've create a my own query directory
./assets
to stock my custom queries. I run a scan on a query tests directory that I've write for a custom query.A results file is created in the current directory with the following content :
So, I want to test the remediation command with this following results but
kics remediate
doesn't accept the--query-path
so, here's the following error :