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
The extension asks grype to scan the directory specified byvscode.workspace.rootPath.
It appears that certain circumstances (such as opening a live share link) result in this value being /, which leads grype to scan the entire filesystem.
Scanning / takes a long time, and doing so can result in an orphaned grype process if VS Code exits before the grype child process has completed its execution.
At a minimum, two actions should be taken:
vscode.workspace.rootPath is deprecated and should be replaced by a recommended method of accessing the workspace directory.
A guard should be included to prevent against grype being told to scan /.
The text was updated successfully, but these errors were encountered:
The extension asks
grype
to scan the directory specified byvscode.workspace.rootPath
.It appears that certain circumstances (such as opening a live share link) result in this value being
/
, which leadsgrype
to scan the entire filesystem.Scanning
/
takes a long time, and doing so can result in an orphanedgrype
process if VS Code exits before thegrype
child process has completed its execution.At a minimum, two actions should be taken:
vscode.workspace.rootPath
is deprecated and should be replaced by a recommended method of accessing the workspace directory.grype
being told to scan/
.The text was updated successfully, but these errors were encountered: