Note: Your site administrator must enable 代码扫描 for 您的 GitHub Enterprise Server 实例 before you can use this feature. If you want to use GitHub Actions to scan your code, the site administrator must also enable GitHub Actions and set up the infrastructure required. For more information, see "Configuring 代码扫描 for your appliance."
You can use a variety of tools to set up 代码扫描 in your repository. For more information, see "Setting up 代码扫描 for a repository."
This section applies to 代码扫描 run using GitHub Actions (CodeQL or third-party).
After setting up 代码扫描 for your repository, you can watch the output of the actions as they run.
You'll see a list that includes an entry for running the 代码扫描 workflow. The text of the entry is the title you gave your commit message.
Click the entry for the 代码扫描 workflow.
Click the job name on the left. For example, Analyze (LANGUAGE).
Review the logging output from the actions in this workflow as they run.
Once all jobs are complete, you can view the details of any 代码扫描 alerts that were identified. For more information, see "Managing 代码扫描 alerts for your repository."
Note: If you raised a pull request to add the 代码扫描 workflow to the repository, alerts from that pull request aren't displayed directly on the 代码扫描 page until the pull request is merged. If any alerts were found you can view these, before the pull request is merged, by clicking the n alerts found link in the banner on the 代码扫描 page.