Skip to content

ci: add timeout-minutes to scheduled workflow jobs#6940

Open
kunal-yelgate wants to merge 1 commit into
pipe-cd:masterfrom
kunal-yelgate:ci/add-timeout-scheduled-jobs
Open

ci: add timeout-minutes to scheduled workflow jobs#6940
kunal-yelgate wants to merge 1 commit into
pipe-cd:masterfrom
kunal-yelgate:ci/add-timeout-scheduled-jobs

Conversation

@kunal-yelgate

Copy link
Copy Markdown

What this PR does:

Adds explicit timeout-minutes to scheduled GitHub Actions workflow jobs that currently don't define one.

Workflow Job Timeout Reasoning
.github/workflows/codeql-analysis.yaml analyze 60 CodeQL analysis can take a while; 60 minutes is reasonable
.github/workflows/stale.yaml stale 15 Only runs actions/stale, which is typically fast

Why we need it:

Scheduled workflows run without direct user interaction, so a stuck job can occupy a runner until the default GitHub Actions 6-hour timeout is reached. Adding explicit timeouts makes these jobs fail faster when they hang and keeps runner usage bounded.

The repository already uses explicit job timeouts in other workflows:

  • .github/workflows/build_tool.yaml (timeout-minutes: 15)
  • .github/workflows/publish_tool.yaml (timeout-minutes: 30)

This change follows the same existing pattern.

Which issue(s) this PR fixes:

Fixes #6902

Does this PR introduce a user-facing change?:

  • How are users affected by this change: No impact.
  • Is this breaking change: No.
  • How to migrate (if breaking change): N/A.

Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
@kunal-yelgate kunal-yelgate requested a review from a team as a code owner June 26, 2026 09:04
@kunal-yelgate kunal-yelgate force-pushed the ci/add-timeout-scheduled-jobs branch from 13ab1d9 to f1d5e32 Compare June 26, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add timeout-minutes to scheduled workflow jobs

1 participant