vscode-codeql icon indicating copy to clipboard operation
vscode-codeql copied to clipboard

Actions databases vs. quick-query: generated qlpack file depends on JavaScript, not Actions library

Open smowton opened this issue 7 months ago • 0 comments

To reproduce:

Create any Actions database (codeql database create -l actions ...)

Select the database in VSCode

Create a Quick Query

Observe that the qlpack.yml file created depends on javascript-all, and so the import actions line in the fresh query doesn't resolve.

Cause is https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/src/databases/qlpack.ts#L28 matching qlpacks vs. dbschemes, and the Actions extractor using the JavaScript dbscheme.

Possible solutions could include looking at the codeql-database.yml file, or having the Actions extractor rename the dbscheme file after invoking the JS autobuilder such that the database can be distinguished from a JS database using the existing dbscheme name heuristic.

smowton avatar Jun 10 '25 11:06 smowton