-
Notifications
You must be signed in to change notification settings - Fork 525
feat: add --exclude flag to skip paths during scanning #2458
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
Merged
another-rex
merged 32 commits into
google:main
from
Ankitsinghsisodya:feat/exclude-paths-flag
Feb 11, 2026
+889
−30
Merged
Changes from 9 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
eafb3a6
feat: add --exclude flag to skip paths during scanning
Ankitsinghsisodya f0aa799
feat: add --exclude flag with glob and regex support
Ankitsinghsisodya d7e12fd
Merge remote-tracking branch 'origin/feat/exclude-paths-flag' into fe…
Ankitsinghsisodya f634bd1
fix: address lint issues for --exclude flag implementation
Ankitsinghsisodya d35d194
Merge branch 'main' into feat/exclude-paths-flag
Ankitsinghsisodya 4223e6c
feat: Implement experimental skip directory functionality with explic…
Ankitsinghsisodya eab9cc8
feat: Add tests for the experimental `--skip-dir` flag with support f…
Ankitsinghsisodya 65a8186
feat: Implement and test directory exclusion functionality using skip…
Ankitsinghsisodya edbbe2d
feat: Add `--experimental-skip-dir` flag with regex pattern support t…
Ankitsinghsisodya 1138b63
refactor: rename skip directory patterns to exclude patterns and move…
Ankitsinghsisodya b508b49
refactor: streamline exclude patterns initialization and error handling
Ankitsinghsisodya a954c7e
refactor: Rename test case names to snake_case for consistency.
Ankitsinghsisodya cd30159
refactor: unexport exclude pattern types and functions for internal use.
Ankitsinghsisodya 772c5a0
chore: Remove redundant vulnerability ID check and unused import from…
Ankitsinghsisodya 0bc9ca0
build: Exclude `pkg/osvscanner/exclude.go` from the `forbidigo` linte…
Ankitsinghsisodya c783f97
Update pkg/osvscanner/exclude_test.go
Ankitsinghsisodya 78d51d8
Update pkg/osvscanner/exclude_test.go
Ankitsinghsisodya e7ac260
refactor: rename `experimental-skip-dir` flag to `experimental-exclud…
Ankitsinghsisodya 0ef512f
test: update `experimental-exclude` flag test names and add cases for…
Ankitsinghsisodya c8e92a9
refactor: Remove redundant boolean flags and simplify assertions in `…
Ankitsinghsisodya a2aeb05
Merge branch 'main' into feat/exclude-paths-flag
Ankitsinghsisodya 3dc8bac
Update cmd/osv-scanner/scan/source/command.go
another-rex 62b1e4e
Merge remote-tracking branch 'upstream/main' into feat/exclude-paths-…
another-rex b455ba2
Add the cassettes
another-rex 28e12ca
Fix r: special case
another-rex 9a564ef
Merge remote-tracking branch 'upstream/main' into feat/exclude-paths-…
another-rex 85bfaf7
Update snapshots
another-rex 95acdeb
snaps again...
another-rex 56766fb
Merge remote-tracking branch 'upstream/main' into feat/exclude-paths-…
another-rex 6d81367
Add snaps back in
another-rex 2e4d9a9
Add log exclusion for windows only snapshot
another-rex 11257de
Merge remote-tracking branch 'upstream/main' into feat/exclude-paths-…
another-rex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.