Skip to content

Instantly share code, notes, and snippets.

@sbimochan
Last active May 26, 2023 09:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sbimochan/3ccd04c4fd8bab24373202a8c474e7e1 to your computer and use it in GitHub Desktop.
Run CodeQL locally to check your codebase

Install CodeQL CLI from here

codeql database create project-ql --language=javascript
codeql pack download codeql/javascript-queries
codeql database analyze project-ql codeql/javascript-queries --format=sarifv2.1.0 --output=query-results.sarif --download
sudo pip install sarif-tools
sarif html -o venteur-ql-report/summary.html query-results.sarif

Now open the summary.html in your favorite browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment