Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve --skip-dirs and --skip-files #1249

Merged
merged 7 commits into from
Oct 3, 2021
Merged

feat: improve --skip-dirs and --skip-files #1249

merged 7 commits into from
Oct 3, 2021

Conversation

knqyf263
Copy link
Collaborator

@knqyf263 knqyf263 commented Sep 22, 2021

Description

--skip-dirs and --skip-files used to not affect actual scanning. These options just filter the result because it affects the cache if we skip those files and dirs during scanning. It didn't matter since scanning is fast enough, but Trivy recently supported JAR/WAR/EAR scanning. It requires Internet access and takes some time. It would be useful if those options actually skip scanning those files and dirs, especially in the case of Java scanning.

Related issues

Close #1218
Close #1185
Close #982
Close #766
Close #665

Blockers

@knqyf263 knqyf263 self-assigned this Sep 22, 2021
@knqyf263 knqyf263 marked this pull request as ready for review October 1, 2021 17:08
@knqyf263 knqyf263 requested a review from masahiro331 October 1, 2021 17:08
@masahiro331 masahiro331 self-requested a review October 1, 2021 17:50
@knqyf263 knqyf263 merged commit da90510 into main Oct 3, 2021
@knqyf263 knqyf263 deleted the skip_files_dirs branch October 3, 2021 10:08
liamg pushed a commit that referenced this pull request Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment