What GitHub does with this repository: the workflows that test every change,
the ruleset that decides what may reach main, and the bot that keeps the
pinned images moving. All of it is configuration as code, held to the same
standard as the rest, and linted by actionlint and zizmor in
scripts/lint.sh.
| Workflow | Runs on | Jobs |
|---|---|---|
ci.yml — CI |
pushes to main, every pull request, by hand |
Lint: scripts/lint.sh. Validate configs: the checks scripts/validate.sh runs for make validate, as individual steps calling the same scripts rather than the wrapper. Boot hardened services: starts twelve services under their real hardening and waits for each to be healthy: from the sensitive tier Home Assistant, ntfy, linkding, Stirling-PDF, Actual, Mosquitto, ring-mqtt, Vaultwarden, AdGuard Home, Memos and Glance, and soc's MSI server. Secret scan: gitleaks over the whole history |
close-keywords.yml — Close keywords |
every pull request | No close keyword in prose: fails a title, body or commit whose Closes #N would close an issue the sentence says stays open (check_close_keywords.py) |
digests.yml — Digest drift |
Mondays 07:00 UTC, by hand | Pinned digests still match the registry: catches a tag moved under a pin. Pinned tool versions are current: says when the Packer plugin, a Galaxy collection, or the Alpine or Gentoo cloud image in import-cloud-template.sh has a newer release, the pins Dependabot cannot read. The ruleset on main matches rulesets/main.json: catches a ruleset edited in the UI |
cve-scan.yml — CVE scan |
Mondays 08:00 UTC, by hand | Pinned images carry no fixable HIGH or CRITICAL CVE without an issue: scans every pinned digest (scan-images.sh, cve_report.py; make scan-images locally) and keeps one security issue per image repository, closed by the scan that finds it clean. A finding does not fail the run; an image that could not be scanned does |
wiki-watch.yml — Wiki.js watch |
Mondays 08:30 UTC, by hand | ADR-0089's triggers are read against the pinned Wiki.js: reads the project's advisories and releases (wiki_watch.py) and keeps one issue open while a trigger has fired or an advisory needs a person. A finding does not fail the run; failing to read the sources does |
weekly-audit.yml — Weekly docs audit |
Mondays 06:37 UTC, by hand | Audit: Claude checks one focus area of the docs against the code and recorded state (.claude/commands/weekly-audit.md), may edit only docs/** and README.md files, and files audit issues for the rest. It has no push access. Open PR: no AI. It applies that patch, fails on any path outside the docs, re-renders a changed diagram PNG, runs check_docs.py and the close-keyword check, then opens audit/docs-<week>-focus<N> for review, one branch per focus area so a by-hand run never overwrites another |
Every workflow pins its actions by commit SHA, with the version in a comment
for Dependabot. Each starts from contents: read and checks out with
persist-credentials: false. Images come from the stacks' compose.yaml
through scripts/image-for.sh, never from a tag
written in the workflow.
A green run locally is weaker than a green run here: make validate skips
what the machine it runs on cannot do, and says how many it skipped.
rulesets/main.json is the source of truth for the
branch rules, and make check-ruleset and make apply-ruleset compare it with,
or push it to, the live ruleset. The weekly Digest drift run catches a
difference made in the UI.
- No deletion and no force-push of
main. - Changes arrive by pull request, squash-merged. No approving review is required, because this is a one-maintainer repository, but every review thread must be resolved.
- Five checks must pass: Lint, Validate configs, Boot hardened
services, Secret scan and No close keyword in prose. Since
#862, auto-merge waits for
them. Since #876, a branch
need not be up to date with
mainfirst. scripts/converge.shreads the same check runs before it deploys a commit, so a merge that went red never deploys.
dependabot.yml watches:
- Every stack's
compose.yaml, weekly. Eight stacks share one entry;stacks/mediaandstacks/wikikeep their own. Each bump changes a tag and its digest together, andscripts/check_docs.pybans image versions in prose, socompose.yamlstays the only place a version is written. ansible/'s andscripts/'s Python pins, monthly.scripts/holds PyYAML, hash-pinned, and yamllint.- The OpenTofu provider in
tofu/, monthly. - The workflows' actions, weekly.
The shared entry groups bumps so that stacks sharing config move together:
a Wazuh release is one PR to stacks/soc and stacks/scratch, since scratch
mounts soc's config, and an Alloy, Caddy or socket-proxy bump is one PR per
image covering every directory that pins it.
scripts/check_image_pins.py fails an image
that runs another stack's config on a different pin. The Packer plugin and the Galaxy
collections have no Dependabot ecosystem; digests.yml reports them weekly.
A red Dependabot PR is usually a stale base rather than a bad bump. Ask Dependabot to rebase it before reading the failure.
ISSUE_TEMPLATE/bug.yml: something is broken — a service, dashboard, alert or metric.ISSUE_TEMPLATE/change.yml: a planned change — a new device, a new service, or a change to the network.pull_request_template.md: what changed, why, its blast radius on hosts and VLANs, and what was actually run to verify it.
Close an issue from a pull request only with a keyword that opens its own
sentence. Use Refs #N for anything that should stay open — the Close
keywords check enforces it.