Skip to content

Commit 1cd154f

Browse files
Upgrade CodeQL dependencies and prep for v2.27.1 release (#369)
* Upgrade CodeQL CLI dependency to v2.27.1 * chore(PR369): update CHANGELOG and fix CodeQL unit tests --------- Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> Co-authored-by: Nathan Randall <data-douser@github.com>
1 parent d0dfff2 commit 1cd154f

59 files changed

Lines changed: 509 additions & 399 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.codeql-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.27.0
1+
v2.27.1

‎CHANGELOG.md‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,33 @@ release cadence.
1414

1515
_Changes on `main` since the latest tagged release that have not yet been included in a stable release._
1616

17+
## [v2.27.1] — 2026-09-22
18+
19+
### Highlights
20+
21+
- **Upgraded CodeQL CLI to v2.27.1** — All bundled CodeQL tool query packs were re-resolved against the v2.27.1 library set (`actions-all` 0.6.2, `cpp-all` 12.1.1, `csharp-all` 7.3.1, `go-all` 7.3.2, `java-all` 9.3.1, `javascript-all` 2.10.2, `python-all` 7.2.6, `ruby-all` 7.0.1, `rust-all` 0.2.22, `swift-all` 6.8.4). ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
22+
- **Actions query unit tests now cover `.github/workflows/actions.lock`** — `codeql/actions-all` 0.6.2 is the first library version to ship `codeql/actions/Lock.qll`, so the Actions tool pack gained a dedicated test asserting that the lockfile is extracted and that `ActionsLock.pins` resolves the `uses:` steps it covers. ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
23+
24+
### Added
25+
26+
#### CodeQL Query Packs
27+
28+
- **Added an `actions` query unit test for `.github/workflows/actions.lock` extraction.** The new `server/ql/actions/tools/test/ActionsLock` test uses a `semmle-extractor-options: --file-type YAML` directive so `codeql test run` indexes the lockfile (which `codeql database create` picks up automatically via the Actions autobuilder path filters), then asserts that `ActionsLock.pins` resolves both a repository-level pin and a sub-action pin while leaving an unpinned `uses:` step uncovered. ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
29+
30+
### Fixed
31+
32+
- **C# `PrintAST` unit tests failed after the `csharp-all` 7.3.1 upgrade.** Regenerated the expected output for the upstream `ForeachStmt` → `ForEachStmt` AST class rename introduced with CodeQL CLI v2.27.1. ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
33+
- **Rust `PrintAST` unit tests failed after the `rust-all` 0.2.22 upgrade.** Regenerated the expected output for the changed standard-library macro expansions — `format!` now expands through `$crate::intrinsics::must_use(...)` and `vec!` through `$crate::boxed::box_assume_init_into_vec_unsafe(...)`. The query implementation and MCP API are unchanged. ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
34+
- **The `Create GitHub Release` job failed during release packaging.** `release.yml` now runs `actions/setup-node` with `node-version-file: '.node-version'` before packaging, and `release-npm.yml` sets `include-hidden-files: true` on the build artifact upload so `.node-version` is carried through. ([#368](https://github.com/advanced-security/codeql-development-mcp-server/pull/368))
35+
36+
### Dependencies
37+
38+
- **Upgraded the CodeQL CLI dependency to v2.27.1.** All version-bearing files (including `.codeql-version`, the root/server/extension `package.json` files, the per-language `codeql-pack.yml` manifests, and the server `VERSION` constant) and all `codeql-pack.lock.yml` files were updated. ([#369](https://github.com/advanced-security/codeql-development-mcp-server/pull/369))
39+
40+
**Full Changelog**: [`v2.27.0...v2.27.1`](https://github.com/advanced-security/codeql-development-mcp-server/compare/v2.27.0...v2.27.1)
41+
42+
---
43+
1744
## [v2.27.0] — 2026-09-13
1845

1946
### Highlights
@@ -732,7 +759,8 @@ _Initial public release of the CodeQL Development MCP Server._
732759

733760
<!-- Link definitions -->
734761

735-
[Unreleased]: https://github.com/advanced-security/codeql-development-mcp-server/compare/v2.27.0...HEAD
762+
[Unreleased]: https://github.com/advanced-security/codeql-development-mcp-server/compare/v2.27.1...HEAD
763+
[v2.27.1]: https://github.com/advanced-security/codeql-development-mcp-server/releases/tag/v2.27.1
736764
[v2.27.0]: https://github.com/advanced-security/codeql-development-mcp-server/releases/tag/v2.27.0
737765
[v2.26.4]: https://github.com/advanced-security/codeql-development-mcp-server/releases/tag/v2.26.4
738766
[v2.26.3]: https://github.com/advanced-security/codeql-development-mcp-server/releases/tag/v2.26.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"CodeQL","organization":"GitHub","semanticVersion":"2.27.0","rules":[{"id":"test/query","name":"test/query","shortDescription":{"text":"ExampleQuery1"},"fullDescription":{"text":"Example query for integration testing of the codeql_test_extract MCP server tool."},"defaultConfiguration":{"enabled":true,"level":"warning"},"help":{"text":"# Query Help for JavaScript ExampleQuery1\n\nTODO\n","markdown":"# Query Help for JavaScript ExampleQuery1\n\nTODO\n"},"properties":{"tags":["mcp-integration-tests"],"description":"Example query for integration testing of the codeql_test_extract MCP server tool.","id":"test/query","kind":"problem","name":"ExampleQuery1","precision":"medium","problem.severity":"warning"}}]},"extensions":[{"name":"mcp-client-integration-tests-static-javascript-src","semanticVersion":"0.0.1+fe0e7d2a7059ebb6c6075ff8eaea04f382747656","locations":[{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/src/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/src/codeql-pack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]},{"name":"codeql/javascript-all","semanticVersion":"2.6.11+ce9c8e6e9fd41ef0967b13849bb6ae2183caf9ad","locations":[{"uri":"file:///home/runner/.codeql/packages/codeql/javascript-all/2.6.11/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/.codeql/packages/codeql/javascript-all/2.6.11/qlpack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]},{"name":"codeql/threat-models","semanticVersion":"1.0.31+ce9c8e6e9fd41ef0967b13849bb6ae2183caf9ad","locations":[{"uri":"file:///home/runner/.codeql/packages/codeql/threat-models/1.0.31/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/.codeql/packages/codeql/threat-models/1.0.31/qlpack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]}]},"artifacts":[{"location":{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/test/ExampleQuery1/ExampleQuery1.js","index":0}}],"results":[{"ruleId":"test/query","ruleIndex":0,"rule":{"id":"test/query","index":0},"message":{"text":"Example test code file found for codeql_test_extract example query."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/test/ExampleQuery1/ExampleQuery1.js","index":0}}}]}],"columnKind":"utf16CodeUnits","properties":{"semmle.formatSpecifier":"sarif-latest"}}]}
1+
{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"CodeQL","organization":"GitHub","semanticVersion":"2.27.1","rules":[{"id":"test/query","name":"test/query","shortDescription":{"text":"ExampleQuery1"},"fullDescription":{"text":"Example query for integration testing of the codeql_test_extract MCP server tool."},"defaultConfiguration":{"enabled":true,"level":"warning"},"help":{"text":"# Query Help for JavaScript ExampleQuery1\n\nTODO\n","markdown":"# Query Help for JavaScript ExampleQuery1\n\nTODO\n"},"properties":{"tags":["mcp-integration-tests"],"description":"Example query for integration testing of the codeql_test_extract MCP server tool.","id":"test/query","kind":"problem","name":"ExampleQuery1","precision":"medium","problem.severity":"warning"}}]},"extensions":[{"name":"mcp-client-integration-tests-static-javascript-src","semanticVersion":"0.0.1+fe0e7d2a7059ebb6c6075ff8eaea04f382747656","locations":[{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/src/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/src/codeql-pack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]},{"name":"codeql/javascript-all","semanticVersion":"2.6.11+ce9c8e6e9fd41ef0967b13849bb6ae2183caf9ad","locations":[{"uri":"file:///home/runner/.codeql/packages/codeql/javascript-all/2.6.11/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/.codeql/packages/codeql/javascript-all/2.6.11/qlpack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]},{"name":"codeql/threat-models","semanticVersion":"1.0.31+ce9c8e6e9fd41ef0967b13849bb6ae2183caf9ad","locations":[{"uri":"file:///home/runner/.codeql/packages/codeql/threat-models/1.0.31/","description":{"text":"The QL pack root directory."},"properties":{"tags":["CodeQL/LocalPackRoot"]}},{"uri":"file:///home/runner/.codeql/packages/codeql/threat-models/1.0.31/qlpack.yml","description":{"text":"The QL pack definition file."},"properties":{"tags":["CodeQL/LocalPackDefinitionFile"]}}]}]},"artifacts":[{"location":{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/test/ExampleQuery1/ExampleQuery1.js","index":0}}],"results":[{"ruleId":"test/query","ruleIndex":0,"rule":{"id":"test/query","index":0},"message":{"text":"Example test code file found for codeql_test_extract example query."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"file:///home/runner/work/codeql-development-mcp-server/codeql-development-mcp-server/client/integration-tests/static/javascript/test/ExampleQuery1/ExampleQuery1.js","index":0}}}]}],"columnKind":"utf16CodeUnits","properties":{"semmle.formatSpecifier":"sarif-latest"}}]}

‎extensions/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-codeql-development-mcp-server",
33
"displayName": "CodeQL Development MCP Server",
44
"description": "LLM-assisted development of CodeQL queries, libraries, and tests via #ql-mcp prompts, resources, and tools.",
5-
"version": "2.27.0",
5+
"version": "2.27.1",
66
"publisher": "advanced-security",
77
"license": "LicenseRef-CodeQL-Terms",
88
"icon": "media/codeql-icon.png",

‎package-lock.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql-development-mcp-server_repo",
3-
"version": "2.27.0",
3+
"version": "2.27.1",
44
"description": "An MCP server supporting LLM requests for CodeQL development tools and resources.",
55
"private": true,
66
"type": "module",

‎server/dist/codeql-development-mcp-server.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203959,7 +203959,7 @@ init_package_paths();
203959203959
init_logger();
203960203960
import_dotenv.default.config({ path: resolve14(packageRootDir, ".env"), quiet: true });
203961203961
var PACKAGE_NAME = "codeql-development-mcp-server";
203962-
var VERSION = "2.27.0";
203962+
var VERSION = "2.27.1";
203963203963
async function startServer(mode = "stdio") {
203964203964
logger.info(`Starting CodeQL Development MCP McpServer v${VERSION} in ${mode} mode`);
203965203965
const codeqlBinary = resolveCodeQLBinary();

‎server/dist/codeql-development-mcp-server.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎server/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql-development-mcp-server",
3-
"version": "2.27.0",
3+
"version": "2.27.1",
44
"description": "An MCP server supporting LLM requests for CodeQL development tools and resources.",
55
"main": "dist/codeql-development-mcp-server.js",
66
"type": "module",

‎server/ql/actions/tools/src/codeql-pack.lock.yml‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
lockVersion: 1.0.0
33
dependencies:
44
codeql/actions-all:
5-
version: 0.6.1
5+
version: 0.6.2
66
codeql/concepts:
7-
version: 0.0.31
7+
version: 0.0.32
88
codeql/controlflow:
9-
version: 2.0.41
9+
version: 2.0.42
1010
codeql/dataflow:
11-
version: 2.1.13
11+
version: 2.1.14
1212
codeql/javascript-all:
13-
version: 2.10.1
13+
version: 2.10.2
1414
codeql/mad:
15-
version: 1.0.57
15+
version: 1.0.58
1616
codeql/regex:
17-
version: 1.0.57
17+
version: 1.0.58
1818
codeql/ssa:
19-
version: 2.0.33
19+
version: 2.0.34
2020
codeql/threat-models:
21-
version: 1.0.57
21+
version: 1.0.58
2222
codeql/tutorial:
23-
version: 1.0.57
23+
version: 1.0.58
2424
codeql/typetracking:
25-
version: 2.0.41
25+
version: 2.0.42
2626
codeql/util:
27-
version: 2.0.44
27+
version: 2.0.45
2828
codeql/xml:
29-
version: 1.0.57
29+
version: 1.0.58
3030
codeql/yaml:
31-
version: 1.0.57
31+
version: 1.0.58
3232
compiled: false

0 commit comments

Comments
 (0)