require-google-cloud-build-timeout-format
Require Google Cloud Build timeout values to use seconds format (for example,
1200s).
Targeted pattern scopeâ
- Root
timeout:values incloudbuild.yamlorcloudbuild.yml.
What this rule reportsâ
This rule reports incorrectly formatted Cloud Build timeout values when a
timeout: key is present. A missing timeout key is not flagged here; use
require-google-cloud-build-timeout
to enforce timeout existence.
Why this rule existsâ
Explicit, correctly formatted timeout values reduce accidental long-running builds and make execution limits consistent across environments.
â Incorrectâ
timeout: 20m
steps:
- name: gcr.io/cloud-builders/npm
â Correctâ
timeout: 1200s
steps:
- name: gcr.io/cloud-builders/npm
When not to use itâ
Disable this rule if timeout policy is intentionally managed outside committed Cloud Build config.
Rule catalog ID: R090