Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/skills/upgrade-codeql-cli-and-packs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ This skill guides you through upgrading the CodeQL CLI version used by the MCP s

This repository uses a **CLI-aligned versioning strategy** across all version-bearing files:

1. **`.codeql-version`**: Contains the target CLI version (e.g., `v2.24.1`)
2. **`package.json` versions**: All `package.json` files (root, client, server) use the CLI version number without the "v" prefix (e.g., `2.24.1`)
3. **`ql-mcp-*` pack versions**: Use the CLI version number without the "v" prefix (e.g., `2.24.1`)
1. **`.codeql-version`**: Contains the target CLI version (e.g., `vX.Y.Z`)
2. **`package.json` versions**: All `package.json` files (root, client, extensions/vscode, server) use the CLI version number without the "v" prefix (e.g., `X.Y.Z`)
3. **`ql-mcp-*` pack versions**: Use the CLI version number without the "v" prefix (e.g., `X.Y.Z`)
4. **`codeql/*-all` dependencies**: Must have `cliVersion <= target CLI version`

### Why Database Compatibility Matters
Expand Down Expand Up @@ -77,7 +77,7 @@ Use the `update-release-version.sh` script to deterministically update `.codeql-
./server/scripts/update-release-version.sh X.XX.Y
```

This updates all 22 version-bearing files. Preview changes first with `--dry-run`:
This updates all version-bearing files. Preview changes first with `--dry-run`:

```bash
./server/scripts/update-release-version.sh --dry-run X.XX.Y
Expand Down Expand Up @@ -229,13 +229,13 @@ dependencies:

# Good - explicit compatible version
dependencies:
codeql/cpp-all: 6.1.4
codeql/cpp-all: 1.2.3
```

### Pack cliVersion Rules

- Pack `cliVersion` must be **≤** target CLI version
- Packs built for the same minor version (e.g., 2.23.x) are usually compatible
- Packs built for the same minor version (e.g., X.Y.x) are usually compatible
- Different languages may require different pack versions due to independent release cycles

### Test Output Changes
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:

**Changes made:**
- Updated `.codeql-version` to `${{ needs.detect-update.outputs.version }}`
- Updated all version-bearing files (package.json, codeql-pack.yml) to `${{ needs.detect-update.outputs.latest_version }}`
- Updated all version-bearing files (package.json, extensions/vscode/package.json, codeql-pack.yml) to `${{ needs.detect-update.outputs.latest_version }}`
- Regenerated `package-lock.json`
- Installed CodeQL pack dependencies
- Build and tests passed ✅
Expand All @@ -167,6 +167,7 @@ jobs:
echo "| -------- | --------- | --------- |" >> $GITHUB_STEP_SUMMARY
echo "| .codeql-version | v${CURRENT} | ${VERSION} |" >> $GITHUB_STEP_SUMMARY
echo "| package.json versions | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
echo "| extensions/vscode/package.json | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
echo "| codeql-pack.yml versions | ${CURRENT} | ${LATEST} |" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "A pull request has been created with these changes." >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.0.0",
"eslint": "^10.0.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"prettier": "^3.8.1"
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-codeql-development-mcp-server",
"displayName": "CodeQL Development MCP Server",
"description": "LLM-assisted development of CodeQL queries, libraries, and tests via #ql-mcp prompts, resources, and tools.",
"version": "2.24.1",
"version": "2.24.2",
"publisher": "advanced-security",
"license": "SEE LICENSE IN LICENSE",
"icon": "media/codeql-icon.png",
Expand Down Expand Up @@ -159,7 +159,7 @@
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.3",
"eslint": "^10.0.0",
"eslint": "^10.0.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"glob": "^13.0.6",
Expand Down
Loading