Webql still uses javascript-lgtm.qls, which no longer exists in modern CodeQL releases.
This causes the following error:
Error analyzing CodeQL database:
Command: codeql database analyze --quiet my_analysis javascript-lgtm.qls --format=sarif-latest --output=my_analysis.sarif
Exit code: 2
Standard output:
Standard error: A fatal error occurred: javascript-lgtm.qls is not a .ql file, .qls file, a directory, or a query pack specification.
I think a possible fix could be the following:
query_suite="codeql/javascript-queries"