Skip to content

Commit f57c7b9

Browse files
Copilotdata-douser
andcommitted
Update remaining scripts, workflows, and skills for Rust support
Update server-overview.md, setup-packs.sh, upgrade-packs.sh, update-release-version.sh, release-codeql.yml, and skill files to include 'rust' in language lists. Also update help text in install-packs.sh, extract-test-databases.sh, and run-query-unit-tests.sh. Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/1817d842-51f6-4414-8df3-5b40c48bc036 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 75e8810 commit f57c7b9

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

.github/skills/upgrade-codeql-cli-and-packs/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Use the `codeql_pack_ls` MCP tool to see what pack versions are installed:
113113
For each `codeql/*-all` pack, verify it was built for a compatible CLI version by checking the `cliVersion` field in its `qlpack.yml`:
114114

115115
```bash
116-
for lang in actions cpp csharp go java javascript python ruby swift; do
116+
for lang in actions cpp csharp go java javascript python ruby rust swift; do
117117
version=$(ls ~/.codeql/packages/codeql/${lang}-all/ | head -1)
118118
echo "$lang-all@$version: $(cat ~/.codeql/packages/codeql/${lang}-all/$version/qlpack.yml | grep cliVersion)"
119119
done

.github/skills/upgrade-codeql-cli-and-packs/verify-pack-compatibility.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ find_extractor_dir() {
5151
}
5252

5353
## Languages to check
54-
LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift")
54+
LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "rust" "swift")
5555

5656
## Track overall status
5757
ALL_COMPATIBLE=true

.github/workflows/release-codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8383
run: |
8484
RELEASE_NAME="${{ steps.version.outputs.release_name }}"
85-
LANGUAGES="actions cpp csharp go java javascript python ruby swift"
85+
LANGUAGES="actions cpp csharp go java javascript python ruby rust swift"
8686
8787
# Prerelease versions (containing a hyphen) require --allow-prerelease
8888
PRERELEASE_FLAG=""
@@ -110,7 +110,7 @@ jobs:
110110
- name: CodeQL - Bundle CodeQL tool query packs
111111
run: |
112112
mkdir -p dist-packs
113-
LANGUAGES="actions cpp csharp go java javascript python ruby swift"
113+
LANGUAGES="actions cpp csharp go java javascript python ruby rust swift"
114114
echo "Bundling CodeQL tool query packs..."
115115
for lang in ${LANGUAGES}; do
116116
PACK_DIR="server/ql/${lang}/tools/src"
@@ -148,6 +148,6 @@ jobs:
148148
echo "### Published CodeQL Packs" >> $GITHUB_STEP_SUMMARY
149149
echo "| Pack | Version |" >> $GITHUB_STEP_SUMMARY
150150
echo "| ---- | ------- |" >> $GITHUB_STEP_SUMMARY
151-
for lang in actions cpp csharp go java javascript python ruby swift; do
151+
for lang in actions cpp csharp go java javascript python ruby rust swift; do
152152
echo "| \`advanced-security/ql-mcp-${lang}-tools-src\` | ${RELEASE_NAME} |" >> $GITHUB_STEP_SUMMARY
153153
done

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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/scripts/extract-test-databases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Extract test databases for CodeQL queries associated with the MCP server.
1212
1313
OPTIONS:
1414
--language <lang> Extract databases only for the specified language
15-
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, swift
15+
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, rust, swift
1616
-h, --help Show this help message
1717
1818
By default, the script extracts databases for all supported languages.

server/scripts/install-packs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Install CodeQL packs for queries and query-tests associated with the MCP server.
1212
1313
OPTIONS:
1414
--language <lang> Install packs only for the specified language
15-
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, swift
15+
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, rust, swift
1616
-h, --help Show this help message
1717
1818
By default, the script installs packs for all supported languages.

server/scripts/run-query-unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Run CodeQL query unit tests for all language tools directories.
1414
OPTIONS:
1515
--fail-fast Exit immediately after the first test failure
1616
--language <lang> Run tests only for the specified language
17-
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, swift
17+
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, rust, swift
1818
-h, --help Show this help message
1919
2020
By default, the script runs all tests and reports failures at the end.

server/scripts/setup-packs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install CodeQL pack dependencies for bundled tool query packs.
3131
3232
OPTIONS:
3333
--language <lang> Install packs only for the specified language
34-
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, swift
34+
Valid values: actions, cpp, csharp, go, java, javascript, python, ruby, rust, swift
3535
-h, --help Show this help message
3636
3737
By default, installs pack dependencies for all supported languages.
@@ -62,7 +62,7 @@ while [[ $# -gt 0 ]]; do
6262
done
6363

6464
## Validate language if provided
65-
VALID_LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift")
65+
VALID_LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "rust" "swift")
6666
if [ -n "${LANGUAGE}" ]; then
6767
LANGUAGE_VALID=false
6868
for valid_lang in "${VALID_LANGUAGES[@]}"; do

server/scripts/update-release-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3434
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
3535

3636
## Supported languages for ql-mcp-* packs
37-
LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift")
37+
LANGUAGES=("actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "rust" "swift")
3838

3939
usage() {
4040
cat <<EOF

0 commit comments

Comments
 (0)