GitHub Actions 保留策略扩展:2026年10月1日起覆盖检查、工作流运行与状态
Actions retention will cover checks, workflow runs, and statuses
开发者与运维注意:10月1日起,GitHub Actions 的检查、工作流运行和状态将按保留策略自动清理,默认90天,此前保留超400天。请提前审查仓库、组织或企业的保留设置,并导出需要长期保存的数据,以免丢失。
Starting October 1, 2026, checks, workflow runs, and statuses will be governed by the same Actions retention setting that already controls how long artifacts and logs are kept, with a default of 90 days. Until now, checks, workflow runs, and statuses were retained for 400+ days regardless of your retention configuration. After this change, they will automatically be cleaned up once they pass the artifact and log retention period configured for your repository, organization, or enterprise.
自2026年10月1日起,检查、工作流运行和状态将受与工件和日志保留相同的Actions保留设置管理,默认保留期为90天。此前,无论您的保留配置如何,检查、工作流运行和状态都会被保留超过400天。此变更后,一旦超过为您的仓库、组织或企业配置的工件和日志保留期,它们将被自动清理。
This change reduces the amount of stale data stored across GitHub Actions, helping keep checks, workflow runs, and statuses fast and reliable for everyone.
此变更减少了存储在GitHub Actions中的陈旧数据量,有助于为所有人保持检查、工作流运行和状态的快速与可靠。
What’s changing
变更内容
- Checks, workflow runs, and statuses will follow your Actions retention setting. They will be cleaned up once they exceed your configured artifact and log retention period, instead of sticking around for 400+ days.
- The retention setting now has a broader scope. The setting label in the UI will be updated to read “Check, workflow run, status, artifact and log retention” to reflect that it now governs all five.
- Retention caps still apply. A repository can raise its retention only up to the cap configured at the organization and enterprise level. For public repositories, the maximum retention for checks, workflow runs, and statuses is 90 days, matching the existing limit for artifacts and logs.
- The change is not retroactive. Adjusting your retention setting will not restore data that was previously evicted due to a retention policy. This matches how artifact and log retention behaves today.
- 检查、工作流运行和状态将遵循您的Actions保留设置。一旦超过您配置的工件和日志保留期,它们将被清理,而不再保留超过400天。
- 保留设置的范围现在更广。界面中的设置标签将更新为“检查、工作流运行、状态、工件和日志保留”,以反映它现在管理所有这五项。
- 保留上限仍然适用。仓库只能将其保留期提高到组织和企业级别配置的上限。对于公共仓库,检查、工作流运行和状态的最大保留期为90天,与工件和日志的现有限制一致。
- 此变更不追溯既往。调整您的保留设置不会恢复因保留策略而先前被清除的数据。这与工件和日志保留当前的行为一致。
Billing and storage implications
计费和存储影响
Artifacts and logs count toward your billable GitHub Actions storage. Because this change cleans up data once it passes your retention period, repositories that previously kept artifacts and logs around longer than their configured setting may see a reduction in billable Actions storage usage.
工件和日志计入您的可计费GitHub Actions存储。由于此变更会在数据超过保留期后清理数据,因此之前保留工件和日志超过其配置设置的仓库可能会看到可计费Actions存储使用量减少。
Keep this in mind when you review your retention setting:
在审查您的保留设置时,请记住以下几点:
- Lowering your retention period removes artifacts and logs sooner, which can reduce your Actions storage costs.
- Raising your retention period keeps artifacts and logs available longer, which may increase your billable Actions storage. Checks, workflow run, and statuses metadata are not billed for storage, but the artifacts and logs associated with them are.
- 降低保留期会更快地移除工件和日志,这可以减少您的Actions存储成本。
- 提高保留期会使工件和日志可用时间更长,这可能会增加您的可计费Actions存储。检查、工作流运行和状态元数据不收取存储费用,但与之关联的工件和日志会收取。
What you need to do
您需要做什么
For most repositories, no action is required. Starting on October 1, checks, workflow runs, and statuses will be cleaned up according to the retention setting you already have configured.
对于大多数仓库,无需采取任何操作。自10月1日起,检查、工作流运行和状态将根据您已配置的保留设置进行清理。
To prepare:
准备事项:
- Review your Actions retention setting for your repository, organization, or enterprise before October 1, 2026. Confirm it reflects how long you need checks, workflow runs, and statuses to remain available.
- Increase the retention period if you need a longer window, up to the maximum allowed by your organization and enterprise caps (90 days for public repositories). Note that a longer retention period keeps artifacts and logs longer and may increase your billable Actions storage.
- Export or archive anything you need to keep beyond your configured retention period, since older checks, workflow runs, and statuses will be automatically removed once this change takes effect.
- 在2026年10月1日前,请审查您的仓库、组织或企业的Actions保留设置。确认其反映了您需要检查、工作流运行和状态保持可用的时长。
- 如果您需要更长的保留期,可增加保留期限,最高不超过您的组织和企业上限(公共仓库为90天)。请注意,更长的保留期会使工件和日志保留更久,并可能增加您的可计费Actions存储。
- 请导出或归档您需要在配置的保留期之外保留的任何内容,因为一旦此变更生效,较旧的检查、工作流运行和状态将被自动移除。
The post Actions retention will cover checks, workflow runs, and statuses appeared first on The GitHub Blog.
帖子“Actions保留将涵盖检查、工作流运行和状态”最初出现在GitHub博客上。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力