pipe-cd/pipecd

ci: add timeout-minutes to scheduled workflow jobs

Open

#6,902 创建于 2026年6月7日

在 GitHub 查看
 (6 评论) (0 反应) (1 负责人)Go (319 fork)auto 404
good first issuekind/enhancement

仓库指标

Star
 (1,329 star)
PR 合并指标
 (PR 指标待抓取)

描述

What would you like to be added?

Some scheduled GitHub Actions workflow jobs should define timeout-minutes.

These scheduled workflow jobs currently do not define one:

  • .github/workflows/codeql-analysis.yaml: analyze
  • .github/workflows/stale.yaml: stale

I suggest adding explicit timeouts to these jobs, for example:

timeout-minutes: 60

For stale.yaml, a shorter timeout such as 15 minutes may be enough because it only runs actions/stale.

The repository already uses explicit job timeouts in other workflows, such as .github/workflows/build_tool.yaml and .github/workflows/publish_tool.yaml.

Why is this needed?

Scheduled workflows run without direct user interaction, so a stuck job can occupy a runner until the default GitHub Actions timeout is reached.

Adding explicit timeouts makes these jobs fail faster when they hang and keeps runner usage bounded.

贡献者指南