require-azure-pipelines-trigger
Require an explicit Azure Pipelines trigger: configuration.
Targeted pattern scopeâ
- Top-level
trigger:inazure-pipelines.yml. - Pipelines that omit
trigger:entirely. - Pipelines that explicitly set
trigger: none.
What this rule reportsâ
This rule reports Azure Pipelines configs that do not enable push-triggered CI.
Why this rule existsâ
A repository can accidentally disable push validation while keeping other
pipeline settings intact. Requiring an explicit non-none trigger: keeps CI
coverage visible in code review and prevents silent trigger drift.
â Incorrectâ
pr:
branches:
include:
- main
trigger: none
pr:
- main
â Correctâ
trigger:
branches:
include:
- main
pr:
branches:
include:
- main
When not to use itâ
Disable this rule if the repository intentionally avoids push-triggered Azure Pipelines runs.
Rule catalog ID: R075