-
Notifications
You must be signed in to change notification settings - Fork 329
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
Issue while adding custom queries #1283
Comments
Could you please share the full error log, or a link to a public workflow run? The actual error is further down from the snippet you shared. |
Thanks for replying! |
This is the error. Your custom query is missing the query metadata section, particularly |
Hey, thank you so much for this. |
Hey this is the error I'm facing while creating custom queries in codeql Javascript.
Error: Error running analysis for javascript: Error: Failure invoking /opt/hostedtoolcache/CodeQL/0.0.0-20220923/x64/codeql/codeql with arguments database,interpret-results,--threads=2,--format=sarif-latest,-v,--output=../results/javascript.sarif,--no-sarif-add-snippets,--print-diagnostics-summary,--print-metrics-summary,--sarif-group-rules-by-pack,--sarif-add-query-help,--sarif-category,/language:javascript,/home/runner/work/_temp/codeql_databases/javascript,/home/runner/work/_temp/codeql_databases/javascript-queries-builtin.qls,/home/runner/work/_temp/codeql_databases/javascript-queries-custom-0.qls,/home/runner/work/_temp/codeql_databases/javascript-queries-custom-1.qls.
` Exit code 2 and error was:
Recording pack reference codeql/javascript-queries at /opt/hostedtoolcache/CodeQL/0.0.0-20220923/x64/codeql/qlpacks/codeql/javascript-queries/0.4.0.
Recording pack reference grid-js-queries at /home/runner/work/edp/edp/.github/codeql-queries/grid-js-queries.
Scanning for [codeql-pack.yml, qlpack.yml] from /opt/hostedtoolcache/CodeQL/0.0.0-20220923/x64/codeql/.codeqlmanifest.json
Scanning for [codeql-pack.yml, qlpack.yml] from /opt/hostedtoolcache/CodeQL/0.0.0-20220923/x64/
Not scanning from /opt/hostedtoolcache/CodeQL/0.0.0-20220923/x64/codeql which is already done.`
Please help I have a project due tomorrow.
Thanks in advance.
The text was updated successfully, but these errors were encountered: