Ability to ignore AsymmetricPrivateKey using a Trivyignore file #4612
nilushancosta
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
You can configure allow-rules. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@nilushancosta docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $HOME/Library/Caches:/root/.cache/ \
-v "${PWD}/.trivyignore":/.trivyignore:ro \
-v "${PWD}/trivy-secret.yaml":/trivy-secret.yaml:ro \
aquasec/trivy:latest image \
--exit-code 1 \
--severity MEDIUM,HIGH,CRITICAL \
--secret-config /trivy-secret.yaml \
--ignorefile /.trivyignore gcr.io/datadoghq/agent:7.43.1 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
A Docker image I recently scanned had the following detection in a Python file in
site-packages
This was a false positive because it wasn't an actual private key. To ignore it, I provided the file path to the
--skip-files
flag.Is it possible to provide the ability to use the Trivyignore file to ignore such detections?
Suggested trivyignore entry
Target
Filesystem
Scanner
Secret
Beta Was this translation helpful? Give feedback.
All reactions