Skip to content

Trivy scans itself when scanning target image when running inside docker #6690

Closed Answered by knqyf263
AlexeyTsvetkov asked this question in Q&A
Discussion options

You must be logged in to vote

Your $TARGET_IMAGE is overwritten here and your script is exporting aquasec/trivy:0.51.1.

function download_image_if_needed() {
  TARGET_IMAGE=$1

You can check it.

$ docker images -q aquasec/trivy:0.51.1
448532d89d14

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlexeyTsvetkov
Comment options

@knqyf263
Comment options

Answer selected by knqyf263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants