Running Kics with pre-commmit¶
To use kics
with pre-commit add the following hook to your local repo's .pre-commit-config.yaml
file.
- repo: https://github.com/Checkmarx/kics
rev: '' # change to correct tag or sha
hooks:
- id: kics
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.
repos:
- repo: https://github.com/Checkmarx/kics
rev: '' # change to correct tag or sha
hooks:
- id: kics
verbose: true
args: [--ignore-on-exit, 'all']