Workflows
The GitHub Actions workflows behind the merge gate, distribution and measurement: where each one runs, when, and with which credential.
For the platform team maintaining Redline. If you work in a product repository, the only workflow that touches you is the merge gate — read The merge gate instead.
Why most of them run centrally
Onboarding a repository installs one workflow there: a thin caller that runs the merge gate (redline-gate.yml) on every pull request. The gate is the required status check that decides whether a pull request can merge.
Everything that needs to see many repositories runs centrally instead: distributing standards, checking for drift, collecting telemetry and testing the reviewer. That way no product repository holds a Redline secret. The central workflows live in two places:
- This source repository, which holds the standards and the register of onboarded repositories.
- A separate
redline-metricsrepository, which owns the collected data and nothing else. You copy those workflow files there by hand.
All workflows
| Workflow | Runs in | When | What it does |
|---|---|---|---|
redline-gate.yml | Each onboarded repository | Every pull request | The merge gate every onboarded GitHub repository runs on its pull requests: five jobs — PR checklist, ADR for large diffs, deterministic policy, dependency review and a diff secret scan — aggregated by a sixth into the one status a branch ruleset can require, redline-gate / gate. |
redline-sync.yml | This source repository | On a change to standards/ | Lands the current standards on every registered repository as a pull request — never a push, never a merge. |
redline-collect.yml | redline-metrics | Daily, 05:00 UTC | Pulls review outcomes for merged pull requests across the org and commits them as monthly JSONL. |
weekly-digest.yml | redline-metrics | Mondays, 07:00 UTC | Posts a Monday stakeholder digest to Teams as an Adaptive Card: open and stale PR counts, seed recall, a dashboard link. |
inbox.yml | This source repository | Every 30 min, weekdays | Rebuilds the org-wide prioritised pull-request inbox and publishes it to GitHub Pages. |
dashboard.yml | redline-metrics | Daily, and after collect or canary | Rebuilds the telemetry dashboard from collected data and publishes it to GitHub Pages. |
seed-canary.yml | redline-metrics | Mondays, 03:00 UTC | The regression test for the reviewer itself: a throwaway pull request of known-bad code on a canary repository, scored once the reviewer goes quiet, then closed. It is what tells "nothing to find" apart from "stopped finding things". |
verify-onboarding.yml | This source repository | Tuesdays, 06:00 UTC | Re-verifies every registered repository each week and keeps one tracking issue listing the ones that drifted. |
This repository's own CI lives in .github/workflows/ and is not distributed: ci.yml and release.yml run the maintainer scripts, and registry.yml rebuilds registry.json nightly with redline registry.
Which credential each workflow holds, and how far it reaches, is on Who runs what.
These are GitHub Actions workflows only. The CLI also onboards Azure DevOps repositories, but no scheduled workflow reaches them yet — see Telemetry & validation.
Changing a workflow
- Edit the YAML in workflows/ or .github/workflows/workflows/ holds files destined for other repositories; .github/workflows/ is this repository's own CI. The two are not interchangeable — check where this one lives before editing.
- actionlintCI lints .github/workflows/*.yml, workflows/*.yml and templates/redline.yml together. workflows/ is pointed at explicitly because actionlint's own discovery would skip it.
- node scripts/check-pins.mjsIf you add a third-party action, pin it to a 40-character commit SHA with a trailing # vX.Y.Z comment; a Docker image, to its digest with the tag in the comment. First-party actions/* are referenced by tag. The pin checker re-resolves each pin against the tag its comment claims. CI runs it as its own job, allowed to fail, because it needs the network.
- node scripts/validate.mjsAsserts the workflow files the bundle depends on still exist, and that the gate's job ids still match the required check name derived from them.