跳至主要内容

查看来自 GitHub Actions 的代码扫描日志

查看 GitHub Actions 中代码扫描分析的输出。

谁可以使用此功能?

拥有 读取 权限的用户

在使用默认设置或自定义 GitHub Actions 工作流配置代码扫描后,您可以在其运行时查看操作的输出。有关其他代码扫描设置的日志信息,请参阅 代码扫描日志

  1. 在您的仓库名称下,点击 操作

    Screenshot of the tabs for the "github/docs" repository. The "Actions" tab is highlighted with an orange outline.

    您会看到一个列表,其中包含代码扫描工作流的条目。该条目的文本是您在提交信息中给出的标题。

    Screenshot of the "All workflows" page. In the list of workflow runs is a run labeled "Create .github/workflows/codeql.yml."

  2. 单击代码扫描工作流的条目。

    注意

    如果您在查找通过启用默认设置触发的 CodeQL 工作流运行,条目的文本为 “CodeQL”。

  3. 单击左侧的作业名称。例如,分析 (LANGUAGE)

    Screenshot of the log output for the "Analyze (go)" job. In the left sidebar, under the "Jobs" heading, "Analyze (go)" is listed.

  4. 在工作流运行时查看此工作流中操作的日志输出。

  5. 可选地,若要查看更多关于触发工作流运行的提交的详细信息,请单击短提交哈希。短提交哈希是紧随提交作者用户名后的 7 个小写字符。

  6. 所有作业完成后,您可以查看已识别的任何代码扫描警报的详细信息。欲了解更多信息,请参阅 评估您仓库的代码扫描警报

延伸阅读

如果您在查找有关代码扫描是否访问了任何私有注册表的诊断信息,请参阅 查看来自 GitHub Actions 的代码扫描日志

© . This site is unofficial and not affiliated with GitHub, Inc.