Skip to content

Comments

feat: add default skip dirs#140

Merged
owenrumney merged 2 commits intomasterfrom
feat/add-support-for-skip-dirs
Nov 6, 2025
Merged

feat: add default skip dirs#140
owenrumney merged 2 commits intomasterfrom
feat/add-support-for-skip-dirs

Conversation

@owenrumney
Copy link
Contributor

Add a list of default skip directories. These directories are overridden
at a workspace level through the standard vscode settings.

The skipdirs can be added to or removed from, if there are any in the
list when the scan runs, it will add them using the --skip-dirs flag for
Trivy or the Aqua plugin

Add a list of default skip directories. These directories are overridden
at a workspace level through the standard vscode settings.

The skipdirs can be added to or removed from, if there are any in the
list when the scan runs, it will add them using the --skip-dirs flag for
Trivy or the Aqua plugin
@owenrumney owenrumney requested a review from Copilot November 6, 2025 09:56
@owenrumney owenrumney self-assigned this Nov 6, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for configuring directories to skip during Trivy scans through a new skipDirList configuration option.

  • Implements a new SkipDirOption class to handle the --skip-dirs Trivy command flag
  • Adds a trivy.skipDirList configuration setting with sensible defaults (e.g., node_modules, .git, etc.)
  • Integrates the skip directory option into the Trivy command builder

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/command/options.ts Implements the SkipDirOption class to apply the --skip-dirs flag with platform-specific quoting behavior
src/command/command.ts Integrates SkipDirOption into the default Trivy command options list
package.json Adds trivy.skipDirList configuration with default directories to skip and bumps version to 1.8.8
CHANGELOG.md Documents the new skip directories feature in version 1.8.8

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@owenrumney owenrumney merged commit a851edd into master Nov 6, 2025
3 checks passed
@owenrumney owenrumney deleted the feat/add-support-for-skip-dirs branch November 6, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant