Newshot
Account

Secret scanning 现可检测 GitHub Actions 工作流日志中的密钥

AI summary

GitHub secret scanning 现在除了能检测 issues、wiki、discussions 和 pull requests 中的密钥外,还能检测 GitHub Actions 工作流日志中的密钥。Actions 工作流日志扫描目前处于公开预览阶段。工作流运行完成后,GitHub 会扫描其日志以匹配服务商模式,发现结果会出现在仓库的 secret scanning 告警列表中,并附有指向该 Actions 工作流日志的链接。

Translation(model translation, not the source's own text)

GitHub secret scanning 现在可以检测 GitHub Actions 工作流日志中的机密,此前已支持检测 issues、wikis、discussions 和 pull requests 中的机密。Actions 工作流日志扫描目前处于公开预览阶段。

Actions 工作流日志扫描是如何工作的?

当一次工作流运行完成后,GitHub 会扫描其日志以匹配各服务商的模式。检测结果会出现在你仓库的 secret scanning 告警列表中,与来自代码及其他内容的告警并列展示,并附有指回该 Actions 工作流日志的链接。对于受支持的机密类型,会执行有效性检查,并且即使日志已被删除,告警仍然可用。

如何启用?

该预览版面向 GitHub Enterprise Cloud 上拥有 GitHub Secret Protection 或 GitHub Advanced Security 的企业开放,包括那些数据驻留于 GHE.com 的企业。

企业所有者可以通过打开企业设置,依次选择 Policies 和 Advanced Security,来启用 Actions 工作流日志的 Secret scanning。在 All repositories 下拉菜单中选择 Enabled。该策略默认处于禁用状态,并且仅适用于在这些许可证下已启用 secret scanning 的仓库。

关于该预览版我需要了解什么?

只有在你启用该功能之后完成的工作流运行才会被扫描;已有的日志不会被回溯扫描。通用模式、自定义模式、AI 检测到的机密以及已被 Actions 掩码的机密不会被检测到。

在预览期间,来自 Actions 工作流日志的告警不会生成通知,因此请直接查看你仓库的 secret scanning 告警列表。

了解更多

在我们的产品文档中了解更多关于 secret scanning 的信息。有反馈吗?加入讨论告诉我们。我们在倾听。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗