GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.github.com — CodeQL CLI - GitHub Docs CodeQL CLIYou can use the CodeQL CLI to run CodeQL processes locally on software projects or to generate code scanning results for upload to GitHub. Who can use this feature?CodeQL is available for the following repository types:
In this articleSoftware developers and security researchers can secure their code using CodeQL analysis. For more information about CodeQL, see Code scanning with CodeQL. The CodeQL CLI is a standalone, command-line tool that you can use to analyze code. Its main purpose is to generate a database representation of a codebase, a CodeQL database. Once the database is ready, you can query it interactively, or run a suite of queries to generate a set of results in SARIF format and upload the results to GitHub. You can use the CodeQL CLI to:
The CodeQL CLI can analyze:
About using the CodeQL CLI for code scanningYou can use the CodeQL CLI to run code scanning on code that you're processing in a third-party continuous integration (CI) system. Code scanning is a feature that you use to analyze the code in a GitHub repository to find security vulnerabilities and coding errors. Any problems identified by the analysis are shown in your repository. For an overview of using code scanning with external CI systems, see Using code scanning with your existing CI system. For recommended specifications (RAM, CPU cores, and disk) for running CodeQL analysis, see Recommended hardware resources for running CodeQL. Alternatively, you can use GitHub Actions or Azure DevOps pipelines to scan code using the CodeQL CLI. For more information, see Configuring default setup for code scanning or Configure GitHub Advanced Security for Azure DevOps in Microsoft Learn. For an overview of all the options for using CodeQL analysis for code scanning, see Code scanning with CodeQL. Note
About generating code scanning results with the CodeQL CLIIf you choose to run the CodeQL CLI directly, you first have to install the CodeQL CLI locally. If you are planning to use the CodeQL CLI with an external CI system, you need to make the CodeQL CLI available to servers in your CI system. Once the CodeQL CLI is set up, you can use three different commands to generate results and upload them to GitHub:
Note Uploading SARIF data to display as code scanning results in GitHub is supported for organization-owned repositories with GitHub Code Security enabled, and public repositories on GitHub.com. For more information, see Managing security and analysis settings for your repository. Example CI configuration for CodeQL analysisThis is an example of the full series of commands for the CodeQL CLI that you might use to analyze a codebase with two supported languages and then upload the results to GitHub.
Database extractionThe CodeQL CLI uses special programs, called extractors, to extract information from the source code of a software system into a database that can be queried. You can customize the behavior of extractors by setting extractor configuration options through the CodeQL CLI. See Extractor options. About the GitHub CodeQL licenseLicense notice: If you don’t have a license for GitHub Code Security then, by installing this product, you are agreeing to the GitHub CodeQL Terms and Conditions. For information about how you can try GitHub Enterprise with GitHub Advanced Security for free, see Setting up a trial of GitHub Enterprise Cloud and Setting up a trial of GitHub Advanced Security in the GitHub Enterprise Cloud documentation. About CodeQL CLI database bundlesThe CodeQL CLI database bundle command can be used to create a relocatable archive of a CodeQL database. A copy of a database bundle can be used to share troubleshooting information with your team members or with GitHub Support. See Creating CodeQL CLI database bundles. Getting startedFor the simplest way to get started, see Setting up the CodeQL CLI. More advanced setup options are available if you need them. For example, if you:
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |