Add timeout-minutes to all workflow jobs#19
Merged
Conversation
Default GitHub Actions job timeout is 360 minutes. With these caps, a fork PR that tries to abuse compute (crypto mining via build.rs or test code) gets cut off at 10-15 min instead of 6 hours. Limits are ~4x the observed cold-cache durations: conformance: 15 min (observed ~2m25s warm) all other CI: 10 min (observed <1 min warm, ~2 min cold) CLAAssistant: 5 min (API calls only, observed ~7s)
rpb-ant
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caps job runtime to make compute-abuse via fork PRs less attractive. Default GitHub Actions timeout is 360 min (6 hours); this cuts it to 10-15 min per job.
Headroom is ~4× observed cold-cache durations so legitimate PRs should never hit the cap.
Context: prep for relaxing the fork-PR approval requirement from "all external contributors" to "first-time contributors". The
pull_requestCI is already sandboxed (no secrets, read-only GITHUB_TOKEN, cache-isolated), so the residual risk is compute abuse — this bounds that.