require-google-cloud-build-steps-non-empty
Require steps in Cloud Build config to include at least one step entry.
Targeted pattern scopeâ
- Top-level
stepslist incloudbuild.yaml/cloudbuild.yml.
What this rule reportsâ
This rule reports empty step lists.
Why this rule existsâ
A Cloud Build file with no steps does not describe actionable build behavior and usually indicates incomplete CI configuration.
â Incorrectâ
steps:
timeout: 60s
â Correctâ
steps:
- name: gcr.io/cloud-builders/npm
When not to use itâ
Disable this rule if the build steps are always injected through external templating.
Rule catalog ID: R111