CI reference¶
Contributor-facing reference for every workflow in .github/workflows/. If
you're cutting a release instead, see RELEASING.md; for the
per-channel publish contract see DISTRIBUTION.md.
At a glance¶
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml |
Push to main, every PR |
Primary PR gate — lint, types, tests, security, guards |
cflite-pr.yml |
PR touching parser/engine/rules/fuzz | Per-PR fuzzing focused on the diff |
cflite-batch.yml |
Nightly (04:17 UTC) + manual | Deeper fuzzing across both sanitizers |
codeql.yml |
Every PR + weekly (Mon 04:27 UTC) | Static analysis, results in Code Scanning |
scorecard.yml |
Branch-protection change + weekly | OpenSSF Scorecard, results in Code Scanning |
scout-scan.yml |
Daily (06:00 UTC) + manual | Docker Scout CVE scan against the published image |
vuln-report.yml |
Daily (06:30 UTC) + manual | Rolling issue listing every vulnerability with a fix, and every image finding with no fix that still needs a decision |
publish.yml |
v* tag push + manual (Docker republish on a tag) |
Release pipeline — see RELEASING.md |
release-prep.yml |
Manual (workflow_dispatch, maintainer) |
Opens the "Prepare X.Y.Z release" PR |
marketplace-smoke.yml |
Push to main touching the file + manual + weekly cron |
Verifies the published action, pre-commit hook, and the uvx/pipx run one-shot forms end-to-end; after a release, re-records the README demos if their output changed |
forgejo-smoke.yml |
PRs + pushes to main touching the harness + manual + weekly cron |
Runs the Forgejo guide's snippet on a live containerized Forgejo |
forgejo-smoke-bump.yml |
Twice daily (05:17, 17:17 UTC) + manual | Opens the PR that moves the harness to the newest Forgejo + runner, docs claim included, and the guide snippet's checkout pin |
wolfi-lock-refresh.yml |
Daily (03:37 UTC) + manual | Opens the PR that moves the Docker image's Wolfi package locks to builds at least 72 hours old, and arms auto-merge on it |
compose-spec-watch.yml |
Weekly (Mon 05:41 UTC) + manual | Opens an issue when the Compose spec adds a key or a container slot compose-lint has not triaged |
digest-age-gate.yml |
Hourly (:23) + manual (dry run by default) | Merges Renovate's gcr.io/ghcr.io digest PRs once they have aged 72h, the age gate Renovate cannot apply to them; flags ones that stall |
os-smoke.yml |
Called by ci.yml on PRs touching code and on every push to main + manual + weekly cron |
pytest (3.11 and 3.13, each in two parts; macOS 3.11 not on PRs) + pre-commit hook on macOS and Windows — gates via ci-ok |
sarif-ingestion.yml |
Push to main touching SARIF inputs + manual + weekly cron |
Uploads a probe SARIF to Code Scanning and asserts GitHub ingested it — then deletes its own alerts |
Why SARIF ingestion is not a PR check¶
ci.yml's action smoke passes upload-sarif: "false" on purpose, so
nothing on the PR path ingests a compose-lint SARIF into Code Scanning.
SARIF rejections are schema- and semantics-level — a duplicate ruleId,
an out-of-range region, a level GitHub does not accept — and none of
them are visible to a shape assertion written against the same mental
model that produced the file. They surface in the consumer's job.
sarif-ingestion.yml closes that (#610) off the PR path deliberately:
fork PRs can never hold security-events: write, and a PR-time job would
push deliberately-insecure fixture findings into this repo's alert set on
every run. Post-merge and weekly also matches what it can actually catch
— GitHub tightening SARIF acceptance has no PR to attach to.
The probe deletes its own analysis afterwards, so the fixtures' findings
do not linger in Code Scanning. The parts that can be checked on the PR
are: tests/test_sarif_ingestion_probe.py asserts the probe's lint still
exits 0 (so only an upload failure can fail that job) and that the
document still carries several artifact locations, more than one level,
a suppression, and no duplicate ruleId.
PR-time checks — ci.yml¶
Runs on every PR to main. All jobs must pass before merge. Concurrency
cancels in-progress runs when you push new commits to the same PR. A push to
main is never cancelled: the ruleset does not require a PR to be up to date
before merging, so main's own run is what proves the merged result.
| Job | Purpose |
|---|---|
lint |
ruff check + ruff format --check on src/ and tests/ |
type-check |
mypy src/ tests/; strict on src/, relaxed on tests/ |
test |
pytest -n auto (pytest-xdist, one worker per core) across the Python matrix — 3.11, 3.12, 3.13, 3.14, 3.15. Each version runs as two jobs (the oracle harness, everything else) |
coverage-shard |
The suite under coverage in four parallel shards (the oracle harness, the text-marking suite, the other test files a–q, the rest), each uploading its coverage data |
coverage |
Merges the shards' data (coverage combine) and applies --fail-under=80 — fails below 80% statement coverage repo-wide; on a PR, diff-cover also fails below 90% coverage of the lines that PR adds or changes (see note) |
security |
bandit -r src/ -ll (blocking) + pip-audit for dep CVEs (informational on PRs — see note) |
dependency-review |
Blocks PRs adding deps with known high-severity CVEs or disallowed licenses |
actionlint |
Lints every workflow under .github/workflows/: actionlint (embeds shellcheck for run: blocks) and zizmor (template injection, cache poisoning, kept tokens, unpinned uses; exceptions in .github/zizmor.yml), run with the job token so its online audits run too: published advisories against a pinned action, impostor commits, ref confusion |
hadolint |
Lints the Dockerfile with hadolint (when the Dockerfile or ci.yml, which carries the hadolint pin, changes) |
dist-check |
python -m build + twine check --strict + the wheel/sdist content guards from publish.yml, on PRs touching code or the locks — a packaging regression fails here, not after the tag |
release-actions-smoke |
Runs publish.yml's three non-publishing release actions on the PR's own dists when a workflow changes: gh-action-sigstore-python signs them against Sigstore's staging instance, sbom-action writes an SPDX SBOM for dist/, cosign-installer installs the CLI. It also runs the Scout pre-seed and one non-gating docker/scout-action scan of the published image, with Docker Hub's read-only token, and builds the image with the SBOM attestation docker-build asks BuildKit for, pushing nothing, then checks that the SBOM lists the Debian packages with their release and compose-lint. Same pins as publish.yml, and every copy of each pin moves in one Renovate PR, so a bump of any of them has run before the tag (PRs from this repository only: keyless signing needs the job's OIDC token) |
demo-lock |
Installs scripts/demo/requirements.lock from its hashes and imports what retime.py uses, when that lock changes — the only run a Renovate bump of the demo toolchain gets |
suite-size |
On a PR that changes a lock, collects the suite on the head and on the base, each with its own pinned dev env, and fails if the head collects fewer tests without the PR touching tests/ or src/ — a dependency bump cannot pass by shrinking what the other jobs check |
dockerfile-digests |
Fails if any FROM @sha256: in the Dockerfile is a per-arch manifest instead of an index |
docker-smoke |
Builds linux/amd64 and linux/arm64 from the Dockerfile on native runners and runs each against fixtures (only when build inputs change) |
action-smoke |
Runs ./action.yml against clean and insecure fixtures; asserts exit codes |
docker-smoke / precommit-smoke |
Also compare the reported findings against tests/smoke/insecure.golden.json — exit codes alone hid five of the fixture's six rules |
fix-smoke |
fix --apply round trip on LF and CRLF copies of the insecure fixture — result parses, docker compose config accepts it, endings stay uniform, no new finding, idempotent |
rule-premises |
Runs scripts/validate_rule_premises.py in a live container to prove each rule's premise |
megalinter-plugin |
Builds the wheel and runs MegaLinter with the plugin descriptor on its passing and failing fixtures (scripts/smoke_megalinter_plugin.sh) |
version-consistency |
Fails if pyproject.toml and src/compose_lint/__init__.py disagree on the version |
changelog-gate |
If a PR bumps the version, CHANGELOG.md must have a matching ## [X.Y.Z] section |
dco |
Every commit must carry a Signed-off-by trailer (Developer Certificate of Origin) |
no-ai-attribution |
Fails if a commit adds AI authorship attribution (Co-Authored-By AI, "Generated by", …) |
commit-subjects |
Every commit subject is under 72 characters and carries no Conventional Commits prefix (feat:, fix:, …) |
version-consistency and changelog-gate were added in 0.3.8 to catch
the historically painful release-bump mistakes at review time rather
than tag-push time.
Patch-coverage gate (diff-cover)¶
The coverage job runs two gates over one measurement pass.
The repo-wide floor (--cov-fail-under=80) is what the OpenSSF Best
Practices Silver test_statement_coverage80 criterion measures: statement
coverage across the whole package. It is the trunk's number and is not
traded away for anything below.
The patch gate grades only the lines the PR adds or changes.
diff-cover diffs against the PR's base commit and reads the same
coverage.xml the floor produced, so nothing is measured twice. It exists
because a floor structurally cannot see a change that adds untested code —
a handful of new uncovered lines does not move a whole-repo percentage, so
the floor stays green and the only thing standing between untested code and
main is a checkbox the author ticks about their own work. The threshold is
90%, deliberately above the floor: new code that has tests lands near 100%,
and the gap is room for a genuinely untestable line, which takes a
# pragma: no cover and a comment saying why.
It runs on pull_request only. A push to main has no base to diff
against, and the floor is the gate that speaks for the aggregate.
A PR that touches only docs, tests or metadata has no measurable line in
its diff. diff-cover reports that and passes — correctly. The problem is
that it reports exactly the same thing, and passes just as quietly, when
coverage.xml has stopped lining up with the repo: it matches a report path
against a diff path as text, so a gate that has silently stopped measuring
anything looks identical to a gate with nothing to measure. That is the
failure this whole check exists to stop, one level up, so
.github/scripts/patch-coverage.py wraps it with two checks:
- Every file the report names must exist here, and it must name some.
Runs on every invocation, not only the quiet ones. This is the case that
matters: a report written against
compose_lint/cli.pywhen the diff sayssrc/compose_lint/cli.pymatches nothing at all, and no comparison against the diff would notice, because the mismatch makes both sides empty. - When nothing was measured, no line the diff adds may be one the report calls a statement. This catches line numbers that have drifted from the diff. It is deliberately not claimed as exhaustive — code appended past the report's last statement leaves nothing to intersect — so it backs up the path check rather than standing in for it.
tests/test_patch_coverage.py covers both, since a wrong parser there would
make the guard itself the silent check it exists to prevent.
Dependency-CVE gate (pip-audit)¶
pip-audit queries a live advisory database, so a CVE newly disclosed
against an unchanged, already-pinned dependency turns the check red with
no code change — and because the lock is shared with main, that would
block every open PR at once. To avoid blocking unrelated work on a
time-of-disclosure accident, the gate is split three ways:
- On PRs the
pip-auditstep iscontinue-on-error— it still runs and is visible in the job log, but does not failci-ok. (banditin the same job stays blocking.) - Continuous detection comes from Renovate's OSV alerts
(
osvVulnerabilityAlerts), which open a security PR the day an advisory lands instead of waiting for the weekly schedule. - At release time the same
pip-auditinvocation is a hard gate inpublish.yml'sbuildjob, where the build/publish toolchain actually runs and touches release integrity. The--ignore-vulnset is kept identical in both places.
Dependency lockfiles¶
CI installs dev dependencies from hash-pinned lockfiles:
requirements.lock— runtime only (PyYAML).requirements-dev.lock— dev + lint + security + publish extras.requirements-build.lock— container builds:build, thehatchlingbackend, and the runtime dependency.
Every install in CI passes --require-hashes. Most jobs install with
uv pip install, which is much faster than pip on the same lock. Two keep pip
on purpose: security, whose python -m pip install --upgrade pip bootstraps
pip itself before the hash-pinned install and the audit, and dist-check,
which mirrors publish.yml's install exactly. That pip upgrade is the one
unhashed install.
The build backend is installed the same way. Every python -m build runs
with --no-isolation and every editable install with --no-build-isolation,
after a lock that carries hatchling, so the backend that writes the wheel,
the sdist and the image is the hash-checked one and moves through Renovate's
age gate like any other dependency. [build-system] requires stays a floor
for anyone building the sdist themselves. The one job whose venv must stay the
runtime closure builds isolated with --build-constraint
requirements-build.lock, which uv checks against the lock's hashes. Regeneration instructions
live in CLAUDE.md under "Regenerating lockfiles".
Fuzzing — cflite-pr.yml and cflite-batch.yml¶
fuzz/fuzz_compose.py is an Atheris harness that feeds arbitrary bytes
through LineLoader → _validate_compose → _collect_lines → engine.run_rules.
Any uncaught exception outside the expected-error set is a crash.
PR fuzzing (cflite-pr.yml)¶
Path-filtered to PRs touching src/**, fuzz/**, .clusterfuzzlite/**,
or the workflow itself — i.e., any source change (CLI and formatters
included, since they sit under src/). Docs-only, tests-only, and
config-only PRs skip. fuzz-seconds: 120, mode: code-change.
Failures surface as a red X on the PR plus a SARIF entry in the Security tab. Reproducer bytes are in the run's artifacts — download, feed to the harness locally to reproduce, fix, re-run.
Batch fuzzing (cflite-batch.yml)¶
Nightly matrix across address and undefined sanitizers, fuzz-seconds: 600.
No storage-repo is configured, so each run starts from a cold corpus —
the depth cap is "what 10 minutes reaches from the seed corpus". See
dynamic-testing.md for the rationale and the
gap that storage-repo would close.
When a scheduled fuzz run fails¶
- The run opens (or comments on) an issue titled
Scheduled run failed: ClusterFuzzLite batch fuzzing (<sanitizer>), via the sharedreport-scheduled-failurecomposite. GitHub also emails the workflow author. - SARIF crashes are uploaded to Security → Code Scanning.
- The crash reproducer is in the run's artifacts (90-day retention).
The issue is the tracker; the fix is manual: download the reproducer,
reproduce locally with python fuzz/fuzz_compose.py <file>, land a fix
via PR, land the new corpus entry in fuzz/corpus/ if applicable, and
close the issue with the PR.
The RecursionError fix in 0.3.5 came from this path.
Static analysis — codeql.yml¶
Runs on every PR and weekly (Mondays, 04:27 UTC). Alerts land in Security → Code Scanning. PR alerts show inline as review comments.
Weekly runs catch advisories added to the CodeQL query set that apply to unchanged code — a new rule can flag something your last PR didn't.
Supply chain — scorecard.yml¶
OpenSSF Scorecard runs on every branch-protection-rule change and
weekly (Mondays, 05:13 UTC). Results go to Security → Code Scanning
under the scorecard category.
The Signed-Releases check specifically inspects the last five GitHub
Releases for accompanying signature files (.sigstore, .sig, .asc,
.intoto.jsonl). publish.yml's create-release job attaches Sigstore
bundles to satisfy that check.
Image scanning — scout-scan.yml¶
Runs daily (06:00 UTC) against the published Docker Hub image. Catches
new CVEs filed against the runtime image's base layers after the release
shipped. Results go to Security → Code Scanning under the
docker-scout category.
Scheduled CVE scans need no action unless a high-severity alert appears — at that point the fix is usually a Renovate PR bumping the base image digest, which ships in the next patch release.
Every job that runs docker/scout-action (this one, vuln-report.yml,
publish.yml's docker-scout and ci.yml's release-actions-smoke) first
runs the local
.github/actions/preseed-scout-cli action. The Scout action downloads its
~180 MB CLI from its GitHub release anonymously
(docker/scout-action#116),
so it shares the 60-per-hour unauthenticated budget of the runner's IP with
every other tenant, and a spent budget answers 403 before anything is
scanned. The pre-seed fetches the same asset with the job token, checks it
against the release's checksum file, and puts it where the action looks for
a bundled binary, so the action never downloads. The release version is read
from the action's bundle at run time, so a Renovate bump of the action needs
no matching edit. If the action's layout changes the pre-seed fails rather
than falling back to the anonymous download. Remove it once the action
authenticates its own download.
Fixable-vulnerability report — vuln-report.yml¶
Runs daily (06:30 UTC), just after the Scout sweep. It answers one question: is there anything with an available fix right now?
The blocking gates elsewhere are severity-scoped on purpose — the
dependency review fails at high, the Scout gate at critical — so a
fixable low or medium never blocks unrelated work. That leaves a
visibility gap, because a fixable MEDIUM in the published image is real
and actionable but silent. This workflow closes the gap by reporting on
fixability rather than severity, without changing what blocks.
Output is a single rolling issue labelled fixable-vulns:
- The body is rewritten in place on every run — one issue, never a stream of per-CVE issues.
- It closes itself when nothing fixable is left. An open issue therefore means "there is something to fix right now"; there is no triage backlog to groom.
- Python advisories with no available fix are listed in a collapsed section and deliberately do not open or close the issue. Image findings with no fix are handled differently, below.
It reads three sources: pip-audit over the dev lock, Docker Scout over the
published latest image, and zizmor's known-vulnerable-actions audit over .github/ and
action.yml. The last is here because the actionlint job audits the
workflows only when one changes, and an advisory against a pinned action
nobody touched arrives with time, not with a diff. The audit is online-only;
the step fails if zizmor reports it ran offline, rather than list no actions.
Image findings with no fix get a decision, once. The image scan above is
only-fixed, so a CVE with no fix used to reach nobody: it became a
code-scanning alert and nothing else. A second Scout scan, without that
filter, lists everything the published image is reported for. Each finding
is then one of three things:
- fixable, and already in the table above;
- accepted as open in
docker/open-findings.json, with the reason (the same listdocs/verifying.mdshows readers, held together by a test); - undecided.
An undecided finding becomes a line in the rolling issue, and opens it, when
two things hold. It was published at least 14 days ago (--min-age-days),
because most CVEs in the image's packages are fixed by a package update
before then. And
scout-scan.yml's alerts for main report it too (open or dismissed, since
a dismissed alert is still being reported), because Scout's
advisory data changes between scans and one scan is not enough to act on.
Until both hold it is listed as not yet due. The publication date comes from
OSV; a CVE with no OSV record has an unknown age and is treated as old.
The same comparison runs the other way. An accepted entry is reported as stale when a fix appears or when both scans have stopped reporting it.
The answer to an undecided finding is an entry in
docker/open-findings.json with the reason it is left open. The script
never writes that entry.
Two properties are worth preserving if you edit it:
It applies no --ignore-vuln suppressions. An advisory filtered out
of the ci.yml / publish.yml gates still appears here. This is the
anti-rot property: a suppression whose written justification has gone
stale is otherwise invisible to pip-audit (filtered by ID) and to
Renovate (the existing pin is already satisfiable) at the same time. That
is not hypothetical — the tuf ignore claimed "no fix is installable
under current constraints" for months after sigstore relaxed the pin
that made it true.
A scanner failure fails the job. scripts/vuln_report.py errors out
if either report is missing or has an unexpected shape rather than
rendering an empty body, because a reporting job that silently reports
clean is worse than no reporting job at all.
Release pipeline — publish.yml¶
Tag-triggered, plus a manual Docker-only republish (below). Full detail in
RELEASING.md and the per-channel contract in
DISTRIBUTION.md. Summary:
verify-tag → build → docker-smoke + docker-scout → testpypi →
testpypi-smoke → release-gate (manual approval) → publish +
docker-publish in parallel → create-release →
bump-marketplace-smoke-pin.
docker-smoke calls release-docker-smoke.yml,
the shared pre-publish battery — build the image, then assert the version
matches the tag, the clean fixture exits 0, the insecure fixture exits 1,
and SARIF output parses, each under the fully-hardened flag set README
documents. It was extracted when a second, manual publish workflow kept
its own copy and that copy drifted (#633); the republish path is now
publish.yml's own workflow_dispatch, so it runs the same job.
docker-scout is separate from the smoke because it needs
security-events: write to upload its SARIF, which the shared smoke
workflow should not have to grant. It gates release-gate alongside the
smoke, so a critical CVE still blocks the release.
verify-tag is the first gate: it asserts the tag is annotated (not
lightweight), that the tag commit is reachable from origin/main, and
that the tag's SSH signature verifies against .github/allowed_signers
via git verify-tag — the cryptographic root of the release provenance
chain. Every downstream job inherits the check via needs:.
release-gate is the single human-in-the-loop gate: one approval on the
release environment covers every channel. The per-channel environments
(pypi, dockerhub) carry no reviewer of their own. What they enforce is
a deployment branch policy — only v* tags may enter them — so a job
reaches a publishing credential only from a tag, and only after
verify-tag has checked that tag's signature against
.github/allowed_signers. The Docker Hub push token is an environment
secret of dockerhub (not a repo secret), so this holds for the per-arch
build jobs too — see docs/RELEASING.md "Docker Hub credential scoping". The gate is the signed tag plus one approval;
with a single maintainer, a second approval on the same run would be the
same person clicking twice.
build generates an SPDX SBOM (sbom.spdx.json) for the wheel and
sdist via anchore/sbom-action, scanning the unpacked distributions
with syft's Python catalogers: syft's directory scan does not open an
archive, so a scan of dist/ itself lists one package, the directory
(every release through 0.36.1 shipped that). Unpacked, the wheel's
.dist-info gives the record a bill of materials is for: compose-lint
at the built version, its licence, its PyPI purl and its declared
dependencies, and the job fails if that record is missing. Only the
Python catalogers run because the sdist carries the repository's
.github/ tree, which syft's github-actions cataloger would list as
packages. release-actions-smoke in ci.yml runs the same unpack, scan
and check on every PR that touches a workflow. create-release attaches
the document to the GitHub Release alongside the distributions and
Sigstore bundles.
docker-publish does the equivalent for the image — generates an SBOM
and cosign attests it to the manifest digest.
The image carries a second SBOM, written at build time. docker-build
asks BuildKit for an SBOM attestation (sbom: on the build step), which
lands in each platform's attestation manifest beside the provenance. It
is there for Docker Hub: Docker Scout, which fills the Vulnerabilities
column, uses an SBOM attestation when the image has
one and
indexes the image itself when it does not. For 1.8.1 and 1.8.2, which
had none, Hub showed "None found" while the Scout CLI reported 60 or more
CVEs on the same digests. The scanner image is pinned, because BuildKit's
default tag for it moves, and release-actions-smoke builds with the
same pin on every PR that touches a workflow. The cosign-attested SBOM
stays the one to verify: it is signed with the workflow's identity, and
the build-time one is not.
The bump-marketplace-smoke-pin job opens a post-release PR updating
marketplace-smoke.yml to the SHA the tag pointed at. GITHUB_TOKEN
can't push commits that modify .github/workflows/*, so this job
uses a repo-scoped PAT stored in the MARKETPLACE_SMOKE_PAT secret.
The job preflights that secret and fails early if it's unset. The PR is
also authored with that PAT (not GITHUB_TOKEN): a GITHUB_TOKEN-
authored PR does not trigger pull_request/push workflows (GitHub's
recursion guard), so it would land with zero checks and sit blocked
until someone closed and reopened it. Authoring it as the PAT user makes
the required checks run automatically.
The job then arms auto-merge on that PR, so it lands on its own once
ci-ok is green. The arm is the shared .github/actions/arm-auto-merge
composite, one definition for every bot-authored PR this repository opens
(this job, release-prep.yml, forgejo-smoke.yml; three hand-copies had
drifted, #1057). Given a PR and a PAT it reports one result: armed;
already-armed (a re-run); merged-direct, when every required check had
already finished — GitHub refuses to arm a PR in that "clean" state, so
gh pr merge --auto merges it on the spot instead (and the explicit direct
merge behind it covers gh handing the refusal through); that merge is
permitted only in the clean state, so neither path lands ahead of ci-ok;
skipped-no-token; or failed. It never fails the calling job;
each caller turns the result into its own step-summary wording. The merge
here gates nothing irreversible: the PR opens only
after publish, docker-publish and create-release have all succeeded,
so PyPI, Docker Hub and the GitHub Release are already permanent by the
time it exists — the release environment approval upstream is the
control, and it happened before any of that. The pinned SHA is
git rev-parse "${TAG}^{commit}" computed in the job, so it is right by
construction rather than by inspection. Auto-merge needs Allow
auto-merge enabled on the repository; without it the step warns, the PR
waits for a manual merge, and the release is otherwise unaffected — it is
deliberately not a job failure, since the release has already shipped and
a red X would misreport that.
What this removes is a step that could be forgotten, which is the
failure this job exists to prevent: v0.14.1 shipped with the README
snippet still pinned to v0.14.0. What it does not remove is the check on
the result — a post-release smoke failure now opens an issue (see
marketplace-smoke.yml below), which is what made automerging safe to
turn on.
Merging that PR is what triggers marketplace-smoke.yml — deliberately,
so the smoke runs against the release just cut. It also means the smoke
runs minutes after the publish, inside the window where PyPI's JSON API
already shows the release but the /simple/ index pip resolves against
does not. That race failed the 0.20.0 run (#612), so two things now
absorb it: marketplace-smoke.yml's pypi-propagated job gates every
PyPI-consuming job on the version being visible on /simple/, and
action.yml's install retries with backoff for ~100s. A propagation delay therefore costs wall-clock, not a
red run, and if it does exhaust the retries the message says so instead
of Process completed with exit code 1.
Provisioning MARKETPLACE_SMOKE_PAT¶
Create a fine-grained personal access token:
- Scope: this repository only
- Permissions:
- Contents: Read and write
- Workflows: Read and write
- Pull requests: Read and write
- Expiration: whatever your rotation policy allows; Renovate won't prompt you, so a calendar reminder helps
Store as the MARKETPLACE_SMOKE_PAT repo secret. Classic PATs with
the repo + workflow scopes also work, but fine-grained is easier
to revoke and audit.
Who can release without the signature check¶
verify-tag runs inside publish.yml, and a tag push runs publish.yml
from the tagged commit. A tag at a commit whose own publish.yml no
longer calls verify-tag or release-gate publishes without either.
Pushing that tag takes a credential that can push both tags and workflow
files to this repository. Three hold that today:
- the maintainer's own account;
MARKETPLACE_SMOKE_PAT, because of its Workflows permission, which onlybump-marketplace-smoke-pinneeds (it rewritesmarketplace-smoke.yml);- the Renovate app, which needs workflow write to update actions.
A workflow's GITHUB_TOKEN is not on the list: a tag it pushes starts no
workflow.
The pypi, testpypi and dockerhub environments have no required
reviewer, so nothing outside the tagged tree stops such a run. That is a
deliberate choice for a single-maintainer project. A second approval
would come from the same person, and the token only runs in jobs on
reviewed code from main or a signed tag, with every action SHA-pinned.
Revisit it if the token spreads to more workflows, if a second
maintainer joins, or when the release flow is next reworked. Moving the
smoke pin bump to Renovate would let the token drop its Workflows
permission.
Maintainer-triggered workflows¶
release-prep.yml¶
Actions → Release prep → Run workflow, enter the version number
(e.g. 0.3.8). Opens the "Prepare X.Y.Z release" PR: bumps both version
strings, renames the CHANGELOG [Unreleased] section, inserts a fresh
empty one, and links to the manual tag-signing step in the PR body.
The job then arms auto-merge on that PR, so it lands on its own once
ci-ok is green — the same shared arm-auto-merge action as the
marketplace-pin job above. Every
line of the diff is derived from the one dispatch input and re-derived by
CI (version-consistency, changelog-gate, the doc-pin check and
lockfiles all run on the PR), and the CHANGELOG prose was reviewed under
[Unreleased] before the dispatch; release-prep only renames the heading.
The merge gates nothing irreversible: the signed tag is still pushed by
hand afterwards, and the release environment approval during publish.yml
is the control. Auto-merge needs Allow auto-merge enabled on the
repository; without it the action warns and the PR waits for a manual merge,
which is deliberately not a job failure. The arm is PAT-only: on the
GITHUB_TOKEN fallback the token input is empty and the arm is skipped with
a warning, because a merge armed
by the default token lands on behalf of github-actions[bot] and the
recursion guard then suppresses main's push workflows — no post-merge CI
pass, no docs deploy — for a release commit.
Like the marketplace-pin job, this PR is authored with the
MARKETPLACE_SMOKE_PAT secret so its checks run automatically. Unlike
that job it falls back to GITHUB_TOKEN when the secret is absent
(release-prep touches no .github/workflows/* file, so the token still
works) — but the fallback PR lands check-less and needs a manual
close+reopen, so keep the secret configured. forgejo-smoke-bump.yml
uses the secret the same way, with the same fallback.
The signed annotated tag is not created here. Tag creation stays
manual because (a) GITHUB_TOKEN-created tags don't trigger downstream
workflows and (b) the SSH-signed tag is the root of the Sigstore
provenance chain. See RELEASING.md.
publish.yml — Docker republish (workflow_dispatch)¶
Republishes the Docker image of an existing release, and nothing else.
Dispatch it on the release tag (gh workflow run publish.yml --ref
vX.Y.Z, or Use workflow from → the tag). verify-tag refuses a run
on any other ref, including a branch that happens to share the tag's name.
It runs verify-tag, both docker-smoke legs, docker-scout, the
release-gate approval, docker-build and docker-publish. The PyPI
jobs, dockerhub-description, create-release and the post-release
follow-ups are push-only. Image aliases (X.Y, X, latest) move only
when the tag is the highest release they cover, so republishing an older
version never drags them backwards (scripts/release_image_tags.py).
It exists inside publish.yml rather than as a separate workflow because
the workflow file is part of the image's signing identity: a republish
signs as publish.yml@refs/tags/vX.Y.Z, the identity every release is
verified against. 0.3.4 was republished by the separate workflow this
replaced and carries that workflow's identity instead. Unlike that
workflow, this path goes through the release-gate approval.
A dispatch runs the workflow file as it was at the tag, so it works only
for tags cut after the trigger was added (every release after 0.34.0), and it cannot fix a
defect in that tag's own workflow: that takes a patch release.
tests/test_publish_dispatch.py evaluates every job condition for push and
dispatch runs, since this path otherwise runs only when it is needed.
Document why you used it in the GitHub Release notes — every invocation should leave a paper trail.
marketplace-smoke.yml¶
Verifies the published integration surfaces the way an external user
consumes them: the GitHub Action as tmatens/compose-lint@<sha> from
the Marketplace, and the pre-commit hook as
repo: https://github.com/tmatens/compose-lint pinned at a release tag
(the precommit-published-smoke job, added for issue #570). Unlike
ci.yml's action-smoke and precommit-smoke jobs (which use the
tree under test via $/ and try-repo), these catch regressions at the
publish boundary: a missing or broken tag, a packaging regression, a
broken published action.yml, a PyPI outage during install.
Auto-runs on push to main that touches marketplace-smoke.yml — i.e.,
when bump-marketplace-smoke-pin's PR lands (it bumps both the action
SHA pins and the pre-commit CL_RELEASE_TAG rev) — so the
freshly-pinned release is verified without a manual step. Also
triggerable from the Actions tab for ad-hoc re-verification, and runs
weekly on a schedule so a regression that develops between releases
(a yanked dependency, a resolver change, a registry-side issue) is
noticed before a user's workflow breaks.
Both unattended triggers — the weekly cron and the post-release push —
open an issue on failure via report-failure. The push leg is the one
that matters most and was added last: by the time it runs, the release
has already shipped to PyPI, Docker Hub and GitHub Releases, so there is
no gate left to fail closed and nothing else would say so. It was
covered only by whoever merged the pin PR happening to watch the run,
which stopped being a person when that PR started automerging. A manual
workflow_dispatch opens no issue: someone set it off and is watching.
The rerecord-demos job keeps the README's two demo GIFs current without
a releaser remembering to. On the post-release push (and on a manual
dispatch) it installs the just-released wheel, runs the commands the three
tapes type (scripts/demo/expected_output.py) and compares the text with
scripts/demo/expected-output.txt, the text the committed GIFs were
recorded from, with the version banner masked. Unchanged means the GIFs
are still current and the job ends with a one-line summary. A difference,
or force: true on a dispatch, moves the toolchain pin and lock to the
release, renders every cast with scripts/demo/render.sh in the pinned
VHS image, rewrites the snapshot, and opens a Re-record the README demos
on X.Y.Z PR with every recording embedded in its body. That PR is
deliberately not auto-merged: whether a banner scrolled off or a pager
page rendered is a question for eyes, and the embedded GIFs make it a
one-glance review. The snapshot is written only by that job (or a hand
re-record), never held to the working tree by a test: if a PR updated it
before the release, the job would have nothing to notice. Masking the
banner means a release with no visible change leaves the README showing
the previous version until output next changes; the force input is the
way to move it anyway.
forgejo-smoke.yml¶
Proves README's Forgejo Actions snippet — and its "Verified on Forgejo X,
runner Y" claim — empirically (issue #573). GitHub-hosted CI cannot be
a Forgejo runner, but it can host one: scripts/forgejo_smoke.py boots a
throwaway Forgejo + act_runner stack
(scripts/forgejo_smoke/compose-forgejo-smoke.yml), extracts the snippet
from README.md verbatim at runtime (documented and tested cannot
drift — they are one string), pushes a repo whose workflow is that
snippet with the shared clean fixture as its compose file, dispatches it,
and requires success. It then asserts the README's verified-on versions
against the live instance and runner, so bumping the harness images
without moving the claim (or vice versa) fails the run.
Runs weekly, on PRs and pushes to main touching the harness — which is
how each Forgejo release re-proves the snippet: the bump PR below carries
this run as its check — and manually. Deliberately not on docs-only PRs:
the release-prep PR bumps the snippet's compose-lint==X.Y.Z pin before
that version exists on PyPI, which would fail spuriously; the weekly run
covers the new pin after release instead. The exception is
docs/forgejo.md itself, the snippet under test: a PR touching it runs the
smoke unless its branch is release/*, the release-prep PR that moves the
compose-lint pin, so an edit to the snippet, by hand or by the bump below,
is proven before it merges.
compose-spec-watch.yml¶
Opens an issue when the Compose Specification
changes in a way compose-lint has not triaged. The parser keeps keys it does
not know, by design, so a key Compose adds is silent rather than an error:
use_api_socket, the lifecycle hooks and jobs: each went ungraded for months
that way (#1187).
scripts/compose_spec_watch.py reads the schema at upstream main and reduces
it to the key names allowed at the top level, on a service, on a job, on a
pre_start hook and on an exec hook, plus the container slots: keys whose
value holds a container or a command run inside one, found through every
schema shape that can nest one. It compares that with
scripts/compose_spec_keys.json, which records key names and the upstream
commit they were read at, and nothing else of the spec. Three-valued like
eol_watch.py: 0 unchanged, 1 changed, 2 no trustworthy answer (fails the run
and is reported as an issue).
One rolling issue, opened on the first change and closed by the first run
after a maintainer triages it (a rule, a traversal, or a recorded decision not
to grade) and commits compose_spec_watch.py --write.
tests/test_compose_spec_watch.py holds the committed record to the engine:
every recorded container slot is either traversed by compose_lint._units or
listed with its reason as deliberately untraversed. Nothing is pinned, so
there is nothing for Renovate: upstream has no tags or releases.
wolfi-lock-refresh.yml¶
Opens the pull request that moves docker/wolfi-runtime.lock and
docker/wolfi-build.lock, the Wolfi package versions the Docker image is
built from (ADR-045).
Renovate has no datasource for an apk repository, so nothing else moves
them.
The wait. Each package moves to its newest build that is at least 72
hours old, the wait every other automatic update here serves. The age is the
build time recorded in the repository index, read from the copy apk
verified against the committed signing key. docker/wolfi-resolve applies
it in three steps: apk resolves the newest set, which gives the package
names; each name is pinned to its aged build; and apk installs that pinned
set, which checks the aged builds still satisfy each other. When they do
not, the run changes nothing, says so in a notice, and the next run tries
again.
It never moves a package backwards. A build already in the lock that is
newer than the aged one stays. That is what lets a fix be taken early by
hand: scripts/wolfi-lock.sh with no option locks the newest build of
everything, and the scheduled refresh leaves those in place until aged
builds pass them.
The review is CI. docker-smoke builds the image from the new locks on
amd64 and arm64 and runs it, and the job arms auto-merge with the shared
action. There is one branch, automation/wolfi-lock-refresh, rebuilt from
main on every run, so there is at most one open refresh and a red one is
replaced the next day.
The changelog. release-prep.yml refuses a release whose [Unreleased]
does not name the runtime lock that ships. scripts/wolfi_lock_bump.py
keeps that current in the same pull request: an entry that names the
previous lock has its id replaced, and otherwise the standard entry is
added. A change to the build lock alone needs no entry.
A scheduled failure opens the usual Scheduled run failed issue.
forgejo-smoke-bump.yml¶
Opens the PR that moves the harness to the newest Forgejo and runner
releases. It has to be two files or nothing: the image pins in
scripts/forgejo_smoke/compose-forgejo-smoke.yml and the "Verified on
Forgejo X, runner Y" line in docs/forgejo.md, because forgejo-smoke.yml
asserts the two agree — which is also why Renovate could never do this
bump even where it can see the file (it cannot move the docs line). And
it cannot see the file: the hosted Renovate fails to look up either
registry (Failed to look up docker package codeberg.org/forgejo/forgejo:
no-result, likewise data.forgejo.org/forgejo/runner, plus Error
obtaining docker token) while a local renovate --platform=local
--dry-run=lookup resolves both, so the failure is the hosted runner's
egress. renovate.json disables the docker-compose manager on that file
so two writers never race on one pin.
The same PR moves the snippet's checkout pin,
https://code.forgejo.org/actions/checkout@<sha> # vX.Y.Z, to the newest
vX.Y.Z release on code.forgejo.org (Forgejo's mirror of
actions/checkout, same commits), at the commit the tag names. Renovate's
manager for snippet actions reads only the owner/repo@sha form, and its
PR would touch docs/forgejo.md alone and merge on age. Here the smoke
runs the new checkout in the snippet before anything merges.
After the bump, the same run checks the smoke's runner image. The smoke maps
runs-on: docker to the image a runner registered with default labels uses,
which the pinned runner's register.go names as
data.forgejo.org/oci/node:lts, under a fixed tag of the same image
(node:26-trixie). forgejo_smoke_bump.py --runner-node reads that default
label from the runner's source and NODE_VERSION from the image, and fails
the run when its Node major differs from the smoke's, which happens when
lts moves, about once a year. The label is moved by hand: a new Node major
is worth a look, and the PR that moves it runs the smoke.
Twice daily rather than weekly because Codeberg deletes a superseded Forgejo patch tag — digest included — within days of the next patch (#746); the old pin is on the clock from the moment a release ships.
A failed scheduled run opens its issue only when the scheduled run before
it also failed. The script retries a timeout, a 429 or a 5xx inside one
run, so what a single failure usually is by then is a registry refusing
that runner's address for longer than a retry can wait, and the next run,
on a new runner, passes. With two runs a day a real break is reported
within about twelve hours. The previous-run job makes the call and
reports whenever it cannot tell: an earlier failure, no earlier run, or
the lookup itself failing. This applies to this workflow only; every other
scheduled workflow reports its first failure.
scripts/forgejo_smoke_bump.py is three-valued like eol_watch.py: 0
nothing to do, 1 files rewritten (the job commits them, one branch per
target version pair, and never reopens a pair a human has already closed),
2 no trustworthy answer — a registry unreachable, an anchor gone from
either file, or a tag resolving to a per-architecture manifest instead of
a manifest list — which fails the run and is reported as an issue. Policy:
the newest stable X.Y.Z of each image, never a -rootless variant or a
floating 16/16.0 tag. A major that breaks the guide's snippet surfaces
as a red Forgejo smoke test check on the bump PR, which is the review.
Because that check is the review, a human clicking merge after reading it
green adds nothing, so forgejo-smoke.yml arms auto-merge on the PR
when the smoke passes: a green bump lands on its own once ci-ok is green.
It uses --auto, not a direct merge, so GitHub still waits for the required
ci-ok check — the smoke itself is deliberately not required, to keep a
job with external dependencies (codeberg.org, data.forgejo.org) off every
PR's required path. When ci-ok finishes first, GitHub refuses to arm an
already-mergeable PR ("clean status"); the shared arm-auto-merge action
then merges directly, which is only permitted because the required checks
have already passed. Arming runs in its own job (arm-bump-automerge,
holding only the contents: read that fetching a $/ action takes, and no
checkout) so the PAT never shares a runner with the PR head's code, and it
is PAT-only: without MARKETPLACE_SMOKE_PAT the action skips with a warning
rather than falling back to GITHUB_TOKEN, whose
merge would push main without triggering the post-merge smoke. A red run
never arms auto-merge and stays open for a human. The PR carries the
manual-merge label (applied best-effort after creation) so it shows in the
same "what needs me" query as the non-automerge Renovate PRs until it either
auto-merges away or a human handles the red.
The PR is authored with MARKETPLACE_SMOKE_PAT (see below) so its checks
run; without the secret it falls back to GITHUB_TOKEN and lands
check-less, like release-prep.yml.
digest-age-gate.yml¶
Merges Renovate's digest refreshes from gcr.io and ghcr.io (the oss-fuzz
builder, vhs) once they have aged the same three days the
Docker Hub digests wait under Renovate's minimumReleaseAge (#1059).
Those PRs open with age-gated (their own label, set in renovate.json,
so manual-merge keeps meaning "a human has to act") because Renovate
cannot age them: its
docker datasource takes a release timestamp from Docker Hub's
tag_last_pushed and from nowhere else — the OCI distribution API exposes
no publish time (renovatebot/renovate#39064), and a reproducible
build zeroes the image timestamps anyway. The review on them
was already mechanical (dockerfile-digests and both docker-smoke legs
are required via ci-ok); the human click added only the age check, and
this is the age check.
The clock is the registry's upload time where there is one. gcr.io's
tags/list returns timeUploadedMs for every manifest, stamped by the
registry when the manifest was pushed, so whoever publishes the image
cannot backdate it. That measures what the gate is for, how long a digest
has been public, and a rebase no longer restarts the wait, since a rebase
does not change the image. The gate takes the newest upload time among the
digests the PR's diff adds. It never reads timeCreatedMs: that comes from
the image config the publisher writes, and a reproducible build
sets it to 0.
Where the upload clock cannot vouch for a PR, the clock is the head
commit's timestamp: "first time we saw this digest" is never earlier than
its publish time, so 72h from first-seen is at least 72h from publish. That
covers ghcr.io (its API has no upload time), a failed lookup, a digest
missing from the listing, and an upload time later than the commit pinning
it. Every failure therefore means waiting longer, never merging sooner. PR
created_at would not do as a clock, because Renovate force-pushes the
branch when the digest moves again. The 72h constant is MIN_AGE_HOURS at
the top of the workflow and must move with renovate.json's
minimumReleaseAge. The step summary names the clock used for each PR.
Stalls. Either clock restarts when upstream publishes a newer digest,
and Renovate always proposes the newest, so an image released more often
than every 72h would never merge and nothing would say so. A PR still
waiting on age STALL_DAYS (7) after it opened gets one comment giving the
head digest's age, and keeps waiting: Renovate keeps the PR current, so
nothing is lost by waiting for a quiet week upstream, and the only thing a
person could do instead is merge a digest younger than the gate allows. The
comment is posted once per PR (the gate reads the PR's comments before
posting), and the gate merges the PR by itself in the first quiet 72h. The
gate runs hourly rather than daily for the same reason: a daily run added
up to a day to every wait, a day in which a newer digest could land and
restart it. Hourly is the schedule asked for, not the one delivered:
GitHub starts scheduled workflows late and drops some, and this one has
gone most of a day between runs, so nothing in the gate may depend on a
second run arriving soon.
Selection is conjunctive and the step summary shows every candidate with
its decision: author renovate[bot], head renovate/*, label
age-gated, title Update <image> Docker digest to <sha> (Docker Hub
digests automerge via Renovate and carry no label, so this is exactly the
gcr/ghcr set), no draft, no fork, every commit authored by Renovate (a
hand-touched branch needs a human, Renovate's own automerge rule),
ci-ok green and no other check red on the head, merge state CLEAN,
aged ≥ 72h. "Red" is any completed check that is not a success or a skip,
not only ci-ok: ci.yml's path filters leave ci-ok green with every
job skipped on a change outside the paths it watches, and the check that
does exercise such a change (the fuzz build on .clusterfuzzlite/, from
cflite-pr.yml) is not a required check. A gate that merges on its own
must not merge past a red check because the check was optional. A
red, conflicting, draft or hand-touched PR is left alone and gets
manual-merge added (removed again once it is clean), so the "what needs
me" query stays truthful; a PR with a check still running, or whose
digest is still too young, stalled or not, is simply waited for. A PR
with no check at all an hour after its head was pushed is not waiting on
anything: GitHub never started its workflows and no later run of the gate
will, so it is classed with the ones a person has to act on (closing and
reopening the PR starts them). To hold one back deliberately, convert it to a draft. A dry
run touches no labels.
The merge is the shared arm-auto-merge action with expected-head set
to the SHA the selection looked at (gh pr merge --match-head-commit), so
a push that lands in between fails the merge rather than shipping content
nobody aged. By the time the gate runs every check finished long ago and the PR
is "clean", so the merge is immediate and the action reports
merged-direct. Should a PR have stopped being clean in between and the
action arm instead, the gate disarms it again: GitHub keeps auto-merge
armed across a collaborator's pushes, so an armed PR would merge whatever
digest Renovate pushed next, unaged. It merges with
MARKETPLACE_SMOKE_PAT so the push to main triggers main's push
workflows as a human merge would; without the secret the merge job skips
with a warning and the PRs wait. Each merge leaves a comment on the PR
saying why it was eligible. A manual dispatch is a dry run by default
(the summary table, no merge); untick the box to merge from a dispatch.
Catch-up merges (#1152). A PR waiting on age may already have
pinned a digest that has aged: Renovate force-pushes the branch to the
newest digest on every upstream rebuild, and the one it replaced is gone
from the PR but not from the registry. Without this the gate forgot it,
and an image rebuilt more often than every 72h never merged on its own
(one builder-image PR carried 19 digests over 18 days and was merged by
hand). The select job's second step finds, per such PR, the newest digest
the PR has ever pinned that a renovate[bot] commit introduced, is newer
than what main pins, has aged 72h by the registry upload time or by the
GitHub-stamped time of the force-push that introduced it, is still served
by its registry, and comes no sooner than 72h after the last change to
that image on main (one catch-up per image per age window, so a daily
rebuild upstream is at most a merge every three days here, each still a
digest at least 72h old). The history comes from the PR's force-push
events and the commits they name, never from a comment the gate could
have written.
The open-catchup job then opens one PR per image on age-gate/<image>,
authored by github-actions[bot], labelled age-gated, with the same PAT
the merge uses so ci-ok runs on it; its body records the source PR, the
clock and the age the selection saw. The same job then waits, up to 20
minutes, for every check on the head it pushed and merges the PR pinned
to that head, applying the test the selection applies to any PR (ci-ok
green, no check red, none running, CLEAN). Opening and merging in one
run is deliberate: a catch-up left for the next scheduled run waits for
however late that run is, and by then a newer digest may have aged. If no
check starts within five minutes of the push the job says so in a warning
and stops, since GitHub did not start the PR's workflows.
A catch-up the job could not merge stays open, and the gate selects it
like any other PR (head age-gate/*, every commit by
github-actions[bot], every check green, CLEAN), aged by construction.
A catch-up PR whose base line no longer matches main (anything else
moved the image first) is closed, never merged, since it would pin a
digest older than main. An open one that pins the same digest is left
alone. An open one that is green merges as it stands even when a newer
digest of the same image has aged since (merge-first in the summary):
moving it would restart its checks and merge nothing in that run, and a
gate that runs about as often as upstream rebuilds would move it on every
run and never merge. An open one that is not green is moved to the newest
aged digest, and the job waits on that head as above. After a catch-up
merges, Renovate's PR conflicts and rebases itself on Renovate's next
run, keeping its upload clock; in the hours between, that PR may carry
manual-merge for the conflict, which the gate removes once it is clean.
A dry run reports the candidate and opens nothing.
Built to be deleted: if upstream Renovate gains a registry-agnostic
release timestamp, scope these images back into the digest automerge rule
in renovate.json and remove this workflow and this section.
os-smoke.yml¶
The developer-machine legs (issue #572): pytest and the pre-commit smoke on macOS and Windows at Python 3.13 — the platforms where the CLI and the hook predominantly run.
Part of the merge gate since #608. ci.yml calls this workflow
(workflow_call) as its os-smoke job whenever the code or workflows
path filter matches, and ci-ok needs that job — so a macOS or Windows
regression blocks the PR that introduces it. Branch protection needed no
change, because it points only at ci-ok. Roughly 2 minutes of wall clock
for all of its jobs, in parallel with the rest of the suite.
Each pytest leg runs as two jobs, split by test file name (a-e and the
rest). On a pull request the macOS 3.11 leg does not run: an account gets
five concurrent macOS jobs, and two versions in two parts plus the
pre-commit job would use all five in one run and queue whenever two runs
overlap. It runs on every push to main, on the weekly cron and on
dispatch. Python 3.11 stays in the PR gate on Linux and Windows, so the
gap is a fault that needs macOS and 3.11 together; that one shows up on
main's run instead of the PR's.
Note that lockfile PRs do not skip these legs: the code filter
matches requirements*.lock. That is intended — the locks are compiled
--universal, so a dependency bump is exactly the change that can break
on one OS alone — but it does mean Renovate PRs wait on macOS/Windows.
Both jobs install the dev environment with uv pip install --require-hashes
from the same lock, as most of ci.yml does: pip took about 80 seconds of the
Windows leg to install the dev lock even with a warm cache.
The workflow_dispatch and weekly schedule triggers remain. The
workflow has no push: main trigger of its own: ci.yml runs every job
group on a push to main and calls it from there, so a second trigger ran
the same six jobs twice per merge. The cron is not redundant with the gate: drift that arrives with
no PR at all — a yanked dependency, a resolver change, a runner-image
update — is structurally invisible to a merge gate.
The soak behind the promotion was narrow: the legs' only failures were the
rollout commits that introduced them (#584–#587, which is what they were
for), and every run from d757ee3 onward was green — but that was 9 runs
inside a single day. If a leg turns out to flake in the merge path, the
fix is to quarantine that leg here, not to widen ci-ok's pass
condition.
Dependency updates — Renovate¶
Renovate opens every dependency bump as a PR (.github/renovate.json; the
schedule is Monday before 04:00 UTC; what ships to users, the base images
and pyyaml, opens at once, as do security fixes). Whether a PR merges itself or waits for a person follows one rule:
A bump merges itself when the PR's own CI exercises the new version, so a
green run is the review. That is the repo-wide default, and the table
below lists only the exceptions. The default is safe because the condition
behind it is enforced where dependencies enter: a dependency may only be
added together with a PR-time run that exercises it ("Adding a
dependency" below), and suite-size fails a bump
that passes by shrinking what CI checks. A shape nobody has named yet
therefore merges on the same terms as everything else, rather than waiting
for a person by accident.
Automerge still has two gates on top of a green ci-ok: the release must
have aged (minimumReleaseAge, three days by default and seven for a major
or for the two release actions no PR can run; renovate/stability-days
stays pending until then), and Renovate merges it itself rather than arming
GitHub auto-merge, so the age check cannot be skipped. A red PR never
merges. Security PRs open immediately, ungrouped and unaged, and then
follow the same rules as any other update, so the only security PR a person
merges is a pyyaml major or a red one.
Three days because a compromised or broken upstream release is usually pulled within days of going public, and a hash-locked install pins whatever release was current. Seven for a major because its first week is when early adopters find the regressions and the x.0.1 lands, so the PR then usually proposes the version people actually run. Seven for the two publish-only actions because there the age is the only review there is.
| Update | Outcome | Why |
|---|---|---|
| Everything not listed below: patches, minors, digests, pins, lock maintenance, action inputs, the Compose, actionlint and hadolint pins, Docker Hub digests and tag moves, the demo toolchain lock | Automerge after 3 days | The PR runs it. The full suite installs the locks; the bumped action runs in the PR's own workflows; release-actions-smoke runs the three release-only actions that can run without publishing, the Scout action, and an image build with the SBOM scanner image; every copy of their pins moves in one PR, so the release's copy is the one exercised; each downloaded binary runs over what it lints or grades; dockerfile-digests, docker-smoke and rule-premises run the images; megalinter-plugin runs the MegaLinter image; demo-lock installs the demo toolchain. A busybox or python release line whose error wordings changed goes red in rule-premises, which asserts them verbatim |
Majors of anything except pyyaml |
Automerge after 7 days | Same review as a minor, plus suite-size, which fails a bump that passes by collecting fewer tests. The extra days let the x.0.1 land first |
Minors of attest-build-provenance and gh-action-pypi-publish |
Automerge after 7 days | Neither has a run that does not publish, so the age is the only review. A bad minor fails the release run before the release-gate approval and is recovered by re-running; a compromised one is what the SHA pin and the age are for |
| gcr.io / ghcr.io digests (oss-fuzz builder, vhs) | age-gated, merged by digest-age-gate.yml |
Same review as a Docker Hub digest, but those registries give Renovate no timestamp; the gate waits 72h from the registry's upload time or first sight instead (see digest-age-gate.yml) |
pyyaml majors |
manual-merge |
pyproject.toml allows >=6.0.2,<7 for every user of the wheel; a major crosses that ceiling and is a compose-lint MAJOR after 1.0, a release decision rather than a bump. Minors move only the locks and merge themselves |
The demo compose-lint pin (scripts/demo/) |
Disabled | It records which release the committed GIF was rendered on; it moves only when the demos are re-recorded, by marketplace-smoke.yml's rerecord-demos job after a release that changed their output, or by hand (RELEASING.md) |
| compose-lint's own action pin in the README snippet | Disabled | Has to name the release just published; publish.yml's bump-marketplace-smoke-pin job moves it after each release. Other actions in README and docs snippets are Renovate's, through a custom manager, and ride the github-actions group so they move with the workflows that run the same version |
The Wolfi packages in the Docker image (docker/wolfi-runtime.lock, docker/wolfi-build.lock) |
Not extracted | Renovate has no datasource for an apk repository. Owned by wolfi-lock-refresh.yml: a daily PR that moves each package to its newest build at least 72 hours old and merges itself when green. docker-smoke builds and runs the image from the new locks on amd64 and arm64, which is the review. scripts/wolfi-lock.sh with no option takes the newest builds by hand, with no wait (ADR-045) |
| Forgejo smoke stack pins and the Forgejo guide's checkout pin | Disabled / not extracted | Owned by forgejo-smoke-bump.yml, which also moves the docs claim Renovate cannot, and whose PR runs the snippet on a live Forgejo |
Tool-comparison fixtures and tool versions (scripts/compare/) |
Disabled | The fixture images belong to deliberately broken Compose files that are never started, and the tool tags in run.sh record which versions the comparison page was measured on. They move when the comparison is run again by hand |
Labels. manual-merge means a person decides, and only a pyyaml major
carries it from Renovate; the age gate adds it to a digest PR it refuses
for a reason other than age (red, conflict, draft, fork, hand-touched).
age-gated means waiting out 72h. Any other open Renovate PR is either
waiting on its age or red, and a red one carries no label, so the "what
needs me" query is manual-merge plus open Renovate PRs with a failing
check. A green PR that sits for days with no label is a bug in this
policy, not a judgment call; the last ones were transitive lock pins,
CalVer packages and action inputs, each a shape no rule named.
Each rule's full reasoning, with the Renovate behaviour it depends on, is
in its description in .github/renovate.json. Change the rule there and
this table together.
Adding a dependency. Because the default is automerge, every new dependency, whatever its kind (a package, an Action, a container image, a downloaded binary or a tool version), has to arrive with a PR-time run that exercises it, or with an exception row above saying why it waits. AGENTS.md "Adding a dependency" has the steps. Pin it, prove Renovate extracts it, and name the job that runs it in the PR; if none does, add one, or add the rule and the row in the same PR. A pin Renovate cannot see is never updated, and nothing reports that; a pin CI never runs merges on nothing but its age.
Where findings land¶
| Signal | Location |
|---|---|
| PR-gating job failure | Red X on the PR, inline log |
| Fuzzing crash (PR or batch) | Security → Code Scanning + run artifacts |
| CodeQL alert | Security → Code Scanning, PR review comments |
| Scorecard finding | Security → Code Scanning (scorecard category) |
| Docker Scout CVE | Security → Code Scanning (docker-scout category) |
| Vulnerability with an available fix | Rolling issue labelled fixable-vulns |
| Image finding with no fix and no recorded decision, 14 days after publication | Same rolling issue |
| Scheduled workflow failure | Issue Scheduled run failed: <workflow> — one per workflow, repeat failures comment on it (.github/actions/report-scheduled-failure); plus the author email and red X. forgejo-smoke-bump.yml waits for a second failure in a row (why) |
| Post-release smoke failure | Issue Post-release run failed: Marketplace smoke test — same action, separate thread from the weekly one so a break in a shipped release is not triaged as a flake |
| Renovate PR | A PR per update. Automerges once green and three days old when the PR itself exercises the change; otherwise labelled manual-merge (a person has to act) or age-gated (gcr/ghcr digests, merged by digest-age-gate.yml after 72h). See Dependency updates |
The Security tab is the single pane of glass for everything except PR-gating failures (which stay on the PR) and Renovate bumps (which open their own PRs).
The two security surfaces are complementary rather than redundant: the
Security tab is the passive record — deduplicated, auto-resolving,
and complete across severities — while the fixable-vulns issue is the
active channel that actually notifies, filtered to what is
actionable today. Note that the Security tab covers image and code
findings only; Python dependency advisories reach it through no path at
all, since pip-audit emits no SARIF. For those, the rolling issue is
the only standing surface.