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
Got error while analyzing a Go db #4815
Comments
|
I think the annotation |
|
where should i change it ? |
|
Here is the problematic query : |
|
Looks like that really is a bug: obviously the intent is for lgtm.com to display the results in tabular form not as inline alerts, but https://help.semmle.com/QL/learn-ql/writing-queries/query-metadata.html says |
|
With that being said, that kind does seem to be used quite a lot, mostly but not exclusively in tests (e.g. https://github.com/github/codeql/blob/8d4f7e2db7ec3b7559a3e358fd1b8a7203ce7474/cpp/ql/src/Architecture/General%20Class-Level%20Information/HubClasses.ql) -- anyone know why that @adilrookout, what query-set were you running that included this one? It shouldn't be part of any standard query set; what was your full |
|
|
|
I recommend running https://github.com/github/codeql-go/blob/main/ql/src/codeql-suites/go-code-scanning.qls instead, which references https://github.com/github/codeql/blob/main/misc/suite-helpers/code-scanning-selectors.yml, which in turn will pick security queries of appropriate types / warning severities. You can copy and customise either one of those files to vary the query selection. |
|
Tried and i get the following error : |
|
The suite helpers can be found in https://github.com/github/codeql/tree/main/misc/suite-helpers . If I am not mistaken things should work if you |
|
@aibaars I'm running into the same issue, and that doesn't seem to work. I have both I've tried patching the |
@jalseth
|
|
@aibaars Thanks! That was it. That said, it's quite abnormal for the relative paths to be based on the tool's location, since it can be placed anywhere on disk as long as it's in $PATH. I would expect the relative search path to be based on the current directory, or relative to the configuration files I point it at. |
|
This issue is stale because it has been open 14 days with no activity. Comment or remove the |
|
I am seeing the same error: I have the three sibling directories as described above:
When I run Specifying the |
|
@xanderdunn have you run |
|
Fixed in #7879 |

Description of the issue
Created a go database via
codeql database createcommandThen ran
codeql database analyzeand got the following error :Unknown kind "Table" when converting to analysis model.(UNSUPPORTED_KIND).The text was updated successfully, but these errors were encountered: