Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-06-03. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Viewing code scanning logs

You can view the output generated during 代� �扫描 analysis in 您的 GitHub Enterprise Server 实例.

If you have write permissions to a repository, you can view the 代� �扫描 logs for that repository.

代� �扫描 适用于启用了 GitHub Advanced Security 的组织拥有的仓库。 更多信息请参阅“关于 GitHub Advanced Security”。

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."

About your 代� �扫描 setup

You can use a variety of tools to set up 代� �扫描 in your repository. For more information, see "Setting up 代� �扫描 for a repository."

Viewing the logging output from 代� �扫描

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.

  1. 在仓库名称下,单击 Actions(操作)主仓库导航中的操作选项卡

    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.

    Actions list showing 代� �扫描 workflow

  2. Click the entry for the 代� �扫描 workflow.

  3. Click the job name on the left. For example, Analyze (LANGUAGE).

    Log output from the 代� �扫描 workflow

  4. Review the logging output from the actions in this workflow as they run.

  5. 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.

Click the "n alerts found" link