Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support importing databases directly from github #1123

Open
aeisenberg opened this issue Feb 8, 2022 · 4 comments · May be fixed by #1229
Open

Support importing databases directly from github #1123

aeisenberg opened this issue Feb 8, 2022 · 4 comments · May be fixed by #1229
Assignees
Labels
enhancement good first issue VSCode

Comments

@aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented Feb 8, 2022

For github repositories that save a copy of their databases, the extension should have a command that downloads and installs the database, similar to how we do it for LGTM databases.

There is already an API endpoint available:

gh api /repos/{owner}/{repo}/code-scanning/codeql/databases/<lang>

Is there a way to determine which database languages are available for any given repo before downloading?

@aeisenberg aeisenberg added enhancement good first issue labels Feb 8, 2022
@github-actions github-actions bot added the VSCode label Feb 8, 2022
@aibaars
Copy link

@aibaars aibaars commented Feb 8, 2022

Is there a way to determine which database languages are available for any given repo before downloading?

@rneatherway ^ ?

@rneatherway
Copy link
Contributor

@rneatherway rneatherway commented Feb 9, 2022

Sorry, no, there isn't currently any way to do that.

@aibaars
Copy link

@aibaars aibaars commented Feb 9, 2022

@rneatherway Would it make sense for an REST API endpoint to list the available databases:

gh api /repos/{owner}/{repo}/code-scanning/codeql/databases

@rneatherway
Copy link
Contributor

@rneatherway rneatherway commented Feb 9, 2022

Yes, that definitely sounds sensible to explore 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue VSCode
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants