Viewing code scanning logs

You can view the output generated during 代码扫描 analysis in your enterprise.

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

代码扫描 可用作 GitHub Advanced Security 的一部分,在测试期间免费使用。 更多信息请参阅“关于 GitHub Advanced Security”。

注意:代码扫描 目前处于测试阶段,可能会更改。

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

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或者, 了解如何参与。