chore(kics): add config example

This commit is contained in:
Michele Cereda
2025-12-17 09:30:47 +01:00
parent 79d11b0110
commit b06830674b
2 changed files with 22 additions and 4 deletions

6
examples/kics.config Normal file
View File

@@ -0,0 +1,6 @@
---
exclude-paths:
# The container starts in '/app/bin', these paths are relative to there.
# See the command in the lefthook configuration.
- repository/container-images/image-builder
exclude-severities: info,low

View File

@@ -6,10 +6,19 @@
## TL;DR ## TL;DR
<details> <details>
<summary>Installation and configuration</summary> <summary>Setup</summary>
```sh ```sh
docker pull 'checkmarx/kics' docker pull 'checkmarx/kics'
cat <<EOF > kics.config
---
exclude-paths:
# The container starts in '/app/bin', these paths are relative to there.
# See the command in the lefthook configuration.
- repository/container-images/image-builder
exclude-severities: info,low
EOF
``` ```
</details> </details>
@@ -18,8 +27,9 @@ docker pull 'checkmarx/kics'
<summary>Usage</summary> <summary>Usage</summary>
```sh ```sh
docker run -t -v "${PWD}:/path" 'checkmarx/kics' scan -p '/path' docker run -t -v "${PWD}:/workdir" 'checkmarx/kics' scan -p '/workdir'
docker run -t -v "${PWD}:/path" 'checkmarx/kics' scan -p '/path' -o '/path/' docker run -t -v "${PWD}:/workdir" 'checkmarx/kics' \
scan -p '/workdir' -o '/workdir/output' --report-formats "glsast,html,pdf" --output-name kics-result
``` ```
</details> </details>
@@ -33,6 +43,7 @@ docker run -t -v "${PWD}:/path" 'checkmarx/kics' scan -p '/path' -o '/path/'
## Further readings ## Further readings
- [Website] - [Website]
- [Codebase]
<!-- <!--
Reference Reference
@@ -43,6 +54,7 @@ docker run -t -v "${PWD}:/path" 'checkmarx/kics' scan -p '/path' -o '/path/'
<!-- Knowledge base --> <!-- Knowledge base -->
<!-- Files --> <!-- Files -->
<!-- Upstream --> <!-- Upstream -->
[website]: https://docs.kics.io/latest/ [Codebase]: https://github.com/Checkmarx/kics/
[Website]: https://docs.kics.io/latest/
<!-- Others --> <!-- Others -->