From 19750cb30f217e6677f4d7c0b266f0b8e1ed2112 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 8 Apr 2026 14:03:46 -0400 Subject: [PATCH] Add CodeQL config to exclude .vscode-test/ from analysis 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> --- .github/codeql/codeql-config.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/codeql/codeql-config.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 0000000000..0f2a92b6c7 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,7 @@ +# CodeQL analysis configuration for vscode-powershell. +# Excludes runtime-downloaded artifacts that are not part of the repository source. +paths-ignore: + - .vscode-test/ # Downloaded VS Code binaries for integration testing (in .gitignore) + - node_modules/ + - out/ + - dist/