Pipeline governance
Shared templates are how platform teams keep hundreds of pipelines consistent. They also hide what a pipeline really
does: the application’s azure-pipelines.yml often has a dozen lines and an extends, and the real process lives in
other files, in another repository, on whatever branch or tag the YAML points to. Nobody sees when one release starts
reading the template of another, when a team pins a template to a feature branch, or when an image starts being
pushed without a security scan.
The Workspace reads every pipeline from its own YAML and answers that for the whole organization.
Every pipeline, file by file
Section titled “Every pipeline, file by file”For each pipeline, the Workspace follows its YAML into the templates it includes, on the branch or tag the YAML declares, and on into the templates those include, and the files they use: the Dockerfile, scripts, ignore files and the Library variable groups it loads (including the ones a pipeline passes to a template as a parameter).
The result is a left-to-right diagram, in the order the run gets to each part: the pipeline → the template → Build, Test, Security scan, SBOM, Push, Deploy → the files each part uses. Pick any branch the pipeline ran on to see what its YAML on that branch uses and expand it to full screen.
azure-pipelines.yml (application)└─▶ ci/build.yml @ release/2.1 (platform-templates) ├─ ① Build ──────────▶ Dockerfile ├─ ② Test ├─ ③ Security scan ──▶ .trivyignore ├─ ④ SBOM └─ ⑤ Push imageShare the diagram
Section titled “Share the diagram”From full screen, Export HTML saves the diagram as a single file that keeps the movement of the flow. It opens in any browser, offline, with no login and nothing to install, so it reaches the people who don’t use Leavory:
- the application team that owns the pipeline, to see what their build really runs;
- a pull request, a ticket or the team’s wiki, next to the change being discussed;
- an architecture review, or audit evidence of how a release was built.
Each file says which pipeline, branch and template it shows, and when it was generated.
Who is out of standard
Section titled “Who is out of standard”Code & Pipelines → Pipeline governance puts every pipeline on one screen: the templates it reads and on which ref, the parts of the process it has, and what is off:
| Issue | Why it matters |
|---|---|
| Template from another release | A release/3.0 pipeline reading the template of release/2.1 builds with yesterday’s rules |
| Template from a work branch | A template on feature/… changes whenever someone pushes to it |
| Template without a ref | It follows the template repository’s default branch, whatever lands there |
| Pushes an image without a security scan | The image reaches the registry without being checked |
| Pushes the image before scanning it | The scan runs too late to stop it |
| Missing file or ref | A template, Dockerfile or branch the YAML points to doesn’t exist |
Templates in use shows each template repository on each ref and how many pipelines read it: how many versions of the same template are alive, and which pipelines still read an old one. Filter by template, issue or tag, and export to CSV.
Alerts when a pipeline goes out of standard
Section titled “Alerts when a pipeline goes out of standard”Turn on Pipeline out of standard in Settings → Alerts to hear about it by email and in your team’s Slack channel. Only new issues are sent: when you turn it on, what already exists is the baseline, and each later change to a pipeline or to a template it reads is compared with it. Several issues arrive as one message.
Tag the pipelines that make up one application (up to three tags per pipeline, counting the project’s) and filter the Pipelines list and the governance view by them.
What it needs
Section titled “What it needs”Nothing beyond the Azure DevOps connection: the same read-only token reads the pipelines and their templates. To follow templates kept in a dedicated repository, register it in Settings → Templates; Leavory keeps a read-only copy of it, refreshed every 30 minutes.