You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also removes the `--json` flag since that has been deprecated for a
while now. The json tests are not deleted, as there are the same tests
with the `--format json` flag.
Succeeds: #1311Closes: #1277
Copy file name to clipboardexpand all lines: docs/scan-source.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,6 @@ The preceding command will find lockfiles, SBOMs, and git directories in your ta
30
30
31
31
The recursive flag `-r` or `--recursive` will tell the scanner to search all subdirectories in addition to the specified directory. It can find additional lockfiles, dependencies, and vulnerabilities. If your project has deeply nested subdirectories, a recursive search may take a long time.
32
32
33
-
Git directories are searched for the latest commit hash. Searching for git commit hash is intended to work with projects that use git submodules or a similar mechanism where dependencies are checked out as real git repositories.
34
-
35
33
## Ignored files
36
34
37
35
By default, OSV-Scanner will not scan files that are ignored by `.gitignore` files. All recursively scanned files are matched to a git repository (if it exists) and any matching `.gitignore` files within that repository are taken into account.
OSV-Scanner will automatically scan git submodules and vendored directories for C/C++ code and try to attribute them to specific dependencies and versions. See [C/C++ Scanning](<supported_languages_and_lockfiles#C/C++ scanning>) for more details.
89
87
88
+
By default, root git directories (i.e. git repositories that are not a submodule of a bigger git repo) are skipped. You can include those repositories by setting the `--include-git-root` flag.
89
+
90
90
## Scanning with call analysis
91
91
92
92
Call stack analysis can be performed on some languages to check if the
0 commit comments