Skip to content

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

Open
@smowton

Description

@smowton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions