-
Notifications
You must be signed in to change notification settings - Fork 370
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
directory scanning should respect gitignore by default #165
Labels
enhancement
New feature or request
Comments
michaelkedar
added a commit
that referenced
this issue
Feb 8, 2023
Closes #165 Also changes `GetCommitSHA` to no longer rely on the system's git executable. By default, OSV-Scanner will skip files/directories that are ignored by a git project's `.gitignore` files. Added a flag `--no-ignore` to disable this behaviour.
cmaritan
pushed a commit
to cmaritan/osv-scanner
that referenced
this issue
Feb 12, 2023
Closes google#165 Also changes `GetCommitSHA` to no longer rely on the system's git executable. By default, OSV-Scanner will skip files/directories that are ignored by a git project's `.gitignore` files. Added a flag `--no-ignore` to disable this behaviour.
Implemented in #191 |
hayleycd
pushed a commit
that referenced
this issue
Mar 9, 2023
Closes #165 Also changes `GetCommitSHA` to no longer rely on the system's git executable. By default, OSV-Scanner will skip files/directories that are ignored by a git project's `.gitignore` files. Added a flag `--no-ignore` to disable this behaviour.
julieqiu
pushed a commit
to julieqiu/osv-scanner
that referenced
this issue
May 2, 2023
Closes google#165 Also changes `GetCommitSHA` to no longer rely on the system's git executable. By default, OSV-Scanner will skip files/directories that are ignored by a git project's `.gitignore` files. Added a flag `--no-ignore` to disable this behaviour.
julieqiu
pushed a commit
to julieqiu/osv-scanner
that referenced
this issue
May 2, 2023
Closes google#165 Also changes `GetCommitSHA` to no longer rely on the system's git executable. By default, OSV-Scanner will skip files/directories that are ignored by a git project's `.gitignore` files. Added a flag `--no-ignore` to disable this behaviour.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OSV-scanner should respect the gitignore by default when walking directories and files.
A project might have a lot of deep directories (e.g. node_modules, build files...etc) that both slows down the scanner and produces a lot of noise. These directories are generally put in the .gitignore files, so ignoring them while scanning solves this by default.
A flag should be added to disable this .gitignore skipping.
The text was updated successfully, but these errors were encountered: