require-google-cloud-build-step-name
Require at least one named step in Google Cloud Build configuration.
Targeted pattern scopeâ
- name:entries incloudbuild.yamlorcloudbuild.yml.
What this rule reportsâ
This rule reports Cloud Build configs that do not include named execution steps.
Why this rule existsâ
Named steps make build behavior understandable in code review and reduce ambiguity about which builder image each step runs.
â Incorrectâ
steps:
- id: test
args: ["test"]
â Correctâ
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 snippets and injects step definitions elsewhere.
Rule catalog ID: R083