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-metrics repository, which owns the collected data and nothing else. You copy those workflow files there by hand.

All workflows

WorkflowRuns inWhenWhat it does
redline-gate.ymlEach onboarded repositoryEvery pull requestThe 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.ymlThis source repositoryOn a change to standards/Lands the current standards on every registered repository as a pull request — never a push, never a merge.
redline-collect.ymlredline-metricsDaily, 05:00 UTCPulls review outcomes for merged pull requests across the org and commits them as monthly JSONL.
weekly-digest.ymlredline-metricsMondays, 07:00 UTCPosts a Monday stakeholder digest to Teams as an Adaptive Card: open and stale PR counts, seed recall, a dashboard link.
inbox.ymlThis source repositoryEvery 30 min, weekdaysRebuilds the org-wide prioritised pull-request inbox and publishes it to GitHub Pages.
dashboard.ymlredline-metricsDaily, and after collect or canaryRebuilds the telemetry dashboard from collected data and publishes it to GitHub Pages.
seed-canary.ymlredline-metricsMondays, 03:00 UTCThe 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.ymlThis source repositoryTuesdays, 06:00 UTCRe-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

  1. 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.
  2. 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.
  3. 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.
  4. 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.