require-google-cloud-build-timeout-max
Require Google Cloud Build timeout values to be bounded and valid.
Targeted pattern scopeâ
- Root
timeout:values incloudbuild.yaml/cloudbuild.yml.
What this rule reportsâ
This rule reports malformed, non-positive, or over-maximum 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â
Bounded timeout values keep build execution policy explicit and prevent runaway config values.
â Incorrectâ
timeout: 999999s
steps:
- name: gcr.io/cloud-builders/npm
â Correctâ
timeout: 3600s
steps:
- name: gcr.io/cloud-builders/npm
When not to use itâ
Disable this rule if timeout policy is externally governed and may exceed this repository policy bound.
Rule catalog ID: R104