Running Kics with pre-commmit¶
kics with pre-commit add the following hook to your local repo's
How to pass extra arguments¶
You can provide arguments to
kics by providing the pre-commit
args property. The following example will print the
kics scan output, but will not block regardless of success/failure.
Create your own local pre-commit hook¶
You can create your own local pre-commit hook using the docker_image language.
This is a more lightweight way to configure
kics as a pre-commit hook.