Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

feat: added skip-cache flag for images #343

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DmitriyLewen
Copy link
Collaborator

added boolean flag skip-cache to skip cache when scanning images.

@knqyf263
Copy link
Collaborator

What motivates you to add this feature?

@AndreyLevchenko
Copy link
Collaborator

What motivates you to add this feature?

Hi @knqyf263
I was going to ask you about it. I'm 100% agree it has no value for customers. But we would love to use it while debuging issues. It would exclude extra step for removing fanal cache. If I miss this step accidentally it can lead investigations to a wrong path.

@knqyf263
Copy link
Collaborator

$ trivy image --clear-cache && trivy image [YOUR_COMMAND]
doesn't work for you? I think we might be missing --skip-cache as well.

@AndreyLevchenko
Copy link
Collaborator

I suspect it won't work in some debug configs. It could be something other then cmd option but it would be nice to have cache bypass logic

@knqyf263
Copy link
Collaborator

I suspect it won't work in some debug configs.

Could you give me some examples? I still don't get your point. --clear-cache has been working for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants