Skip to content

Commit d7d8f01

Browse files
TravisEz13Copilot
andauthored
Add CodeQL config to exclude .vscode-test/ from analysis (#5456)
The .vscode-test/ directory is populated at CI test runtime by the vscode-test npm package, which downloads a VS Code binary to run integration tests. This directory is already in .gitignore and contains third-party VS Code/extension code (not PowerShell source). S360/CodeQL was flagging CodeQL.SM04514 'Weak hashes' in: .vscode-test/.../ms-vscode.js-debug/src/bootloader.js That file belongs to the VS Code JavaScript Debugger extension (ms-vscode.js-debug), owned by the VS Code team. Adding a CodeQL paths-ignore config prevents the scanner from analyzing runtime artifacts that are outside PowerShell's ownership and control. Resolves: ADO #34872363 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0ce9094 commit d7d8f01

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CodeQL analysis configuration for vscode-powershell.
2+
# Excludes runtime-downloaded artifacts that are not part of the repository source.
3+
paths-ignore:
4+
- .vscode-test/ # Downloaded VS Code binaries for integration testing (in .gitignore)
5+
- node_modules/
6+
- out/
7+
- dist/

0 commit comments

Comments
 (0)