Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Visual Studio CodeQL Extension - Downloading database from GitHub #17067

Unanswered
snc-howell-test asked this question in Q&A
Discussion options

Hello, I am running the following:

VS Code Version: 1.91.1 (Universal) on MacOS
CodeQL VS Code Extension: v1.13.1
CodeQL CLI: 2.17.0

I am part of a GitHub Enterprise Account with a GitHub Advanced Security seats. We have configured CodeQL for our repositories. I see findings populating in the "Security" -> "Code scanning" page of the repos "Security Overview". I would like to download CodeQL databases from our enterprise repo. Downloading a publicly available repo such as apache kafka works as expected:
image
image

However, when I attempt to download a database from my enterprise repo I receive an error that it does not exists
image
image

This response leads me to believe I'm missing credentials somewhere. The "Account" section in the bottom right empty and does not give me an option to sign in to github when I have the codeQL extension selected. Other extensions such as the GitHub Actions and GitHub Codespaces allow me to sign in. Even after signing into github through the Codespaces extension, the database download for my enterprise repo fails. When I am signed in, I can view trusted extensions. Should I. expect to see the CodeQL extension here as well?

image

Thank you all for your help!

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Hi @snc-howell-test 👋🏻

Thanks for the questions!

This response leads me to believe I'm missing credentials somewhere

In the command palette, there is an option for "CodeQL: Authenticate to GitHub". Have you tried this and logged in with the right account there?

When I am signed in, I can view trusted extensions. Should I. expect to see the CodeQL extension here as well?

I believe that this isn't about access to credentials, but rather whether extensions are run when you open a workspace and choose the "I do not trust the authors of this project" option.

You must be logged in to vote
0 replies
Comment options

@mbg Thank you for your response. I do not see an option for "CodeQL: Authenticate to GitHub" in the command palette.
image

Extension trust with VS Code may be managed by our organization. I will follow up with the IT department.

You must be logged in to vote
1 reply
Comment options

mbg Jul 25, 2024
Maintainer

Sorry about that. It seems like that option isn't generally available.

There is a setting where you can specify a custom GitHub Enterprise Server URI:

image

Or, alternatively, this corresponds to the "github-enterprise.uri": "" setting in the JSON configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /