require-google-cloud-build-steps
Require a root steps block in Google Cloud Build config.
Targeted pattern scopeâ
- Top-level
steps:entries incloudbuild.yamlorcloudbuild.yml.
What this rule reportsâ
This rule reports Google Cloud Build configs that omit the root steps: key.
Why this rule existsâ
The steps block is the core build execution plan. Requiring it in committed
config helps reviewers verify what runs in CI and prevents ambiguous or partial
build definitions.
â Incorrectâ
timeout: 1200s
â Correctâ
timeout: 1200s
steps:
- name: gcr.io/cloud-builders/npm
args: ["test"]
When not to use itâ
Disable this rule if your repository intentionally stores only partial Cloud Build metadata and injects execution steps elsewhere.
Rule catalog ID: R076