GitHub 密钥扫描扩展至 Actions 工作流日志
Secret scanning detects secrets in GitHub Actions workflow logs
GitHub 密钥扫描现在可以检测 GitHub Actions 工作流日志中的密钥,该功能以公开预览形式提供。工作流运行完成后,GitHub 会扫描日志中的服务商模式,结果出现在仓库的密钥扫描告警列表中并附回日志链接,支持的密钥类型会做有效性校验,日志删除后告警仍保留。
GitHub secret scanning now detects secrets in GitHub Actions workflow logs, in addition to issues, wikis, discussions, and pull requests. Actions workflow log scanning is available in public preview.
How does Actions workflow log scanning work?
When a workflow run completes, GitHub scans its logs for provider patterns. Findings appear in your repository’s secret scanning alert list, alongside alerts from code and other content, with a link back to the Actions workflow log. Validity checks run for supported secret types, and alerts remain available even after the logs are deleted.
How do I enable it?
The preview is available to enterprises on GitHub Enterprise Cloud with GitHub Secret Protection or GitHub Advanced Security, including those with data residency on GHE.com.
Enterprise owners can enable Secret scanning for Actions workflow logs by opening their enterprise settings and selecting Policies, then Advanced Security. Select Enabled in the All repositories dropdown. The policy is disabled by default and applies only to repositories with secret scanning enabled under those licenses.
What should I know about the preview?
Only workflow runs that complete after you enable the feature are scanned; existing logs aren’t backfilled. Generic patterns, custom patterns, AI-detected secrets, and secrets already masked by Actions aren’t detected.
Alerts from Actions workflow logs don’t generate notifications during the preview, so check your repository’s secret scanning alert list directly.
Learn more
Learn more about secret scanning in our product documentation. Have feedback? Let us know by joining the discussion. We’re listening.
The post Secret scanning detects secrets in GitHub Actions workflow logs appeared first on The GitHub Blog.
来源:GitHub Changelog · github.blog