Skip to content

Commit

Permalink
Merge pull request #5794 from Checkmarx/docs/remediate
Browse files Browse the repository at this point in the history
docs(remediate): update remediate docs
  • Loading branch information
cxMiguelSilva committed Sep 14, 2022
2 parents e97e019 + 52b82bf commit b6f3cfb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/kics_auto_remediation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ Note that this feature will be only available for Terraform, for now.
</p>


2. If your JSON report has any result with remediation, you will need to run the new KICS command: fix.
2. If your JSON report has any result with remediation, you will need to run the new KICS command: remediate.

If you want KICS to remediate all the reported issues, you can run ```docker run -v /home/cosmicgirl/:/path/ kics fix --results /path/results/results.json -v```.
If you want KICS to remediate all the reported issues, you can run

If you want to specify which remediation KICS should fix, you can use the flag `--include-ids`. In this flag, you should point the `similarity_id` of the result. For example: ```docker run -v /home/cosmicgirl/:/path/ kics fix --results /path/results/results.json --include-ids "f282fa13cf5e4ffd4bbb0ee2059f8d0240edcd2ca54b3bb71633145d961de5ce" -v```
```docker run -v /home/cosmicgirl/:/path/ kics remediate --results /path/results/results.json -v```.

If you want to specify which remediation KICS should fix, you can use the flag `--include-ids`. In this flag, you should point the `similarity_id` of the result. For example:

```docker run -v /home/cosmicgirl/:/path/ kics remediate --results /path/results/results.json --include-ids "f282fa13cf5e4ffd4bbb0ee2059f8d0240edcd2ca54b3bb71633145d961de5ce" -v```

0 comments on commit b6f3cfb

Please sign in to comment.