Skip to content

Repository map

github-actions[bot] edited this page Dec 6, 2026 · 32 revisions

Repository map

What a push goes through

 project repo (a "caller")                 this repo (the shared pipelines)
┌─────────────────────────┐              ┌──────────────────────────────────┐
│ .github/workflows/      │   uses: @sha │ python-ci.yml / bash-ci.yml /    │
│   ci.yml        ────────┼─────────────▶│ tofu-ci.yml / arduino-ci.yml     │
│   release.yml   ────────┼─────────────▶│ container-release.yml / ...      │
│   security.yml  ────────┼─────────────▶│ security.yml                     │
│   auto-merge.yml ───────┼─────────────▶│ dependabot-auto-merge.yml        │
└─────────────────────────┘              └───────────────┬──────────────────┘
        only says what is                                │ on a trusted ref only
        specific to the project                          ▼
                                          Doppler (OIDC) ── CI credentials

For a push or pull request to a calling repository:

  1. A CI workflow per language runs (python-ci.yml, bash-ci.yml, tofu-ci.yml, arduino-ci.yml). Each ends in a CI green gate.
  2. The security workflow runs CodeQL, gitleaks, the dependency audit, dependency review, Semgrep, and optionally Snyk and Scorecard.
  3. The release workflow builds, tests and scans, then, only after a push to the default branch or a tag, publishes, signs and attests.
  4. A separate watcher handles Dependabot's own pull requests.

Branch protection requires only the CI green gate(s), so adding a job to a workflow never leaves it unrequired.

The shape of every workflow

Every reusable workflow follows the same pattern, which is what makes the tests possible:

  • permissions: contents: read at the top, widened per job.
  • Every job: a timeout, its own permissions: block, and harden-runner as the first step.
  • Inputs for every command, passed to the shell through environment variables.
  • egress-policy / allowed-endpoints / extra-allowed-endpoints inputs.
  • Doppler credentials fetched only when the workflow genuinely needs them, and only on a trusted ref.
  • Commands that run the caller's code live in a job with no write token and no OIDC identity. Publishing happens in a separate job that runs none of the caller's code.

That last point is the most important structural idea: the job that runs untrusted-ish code and the job that holds power are never the same job. You will see it in python-ci.yml (test vs coverage), docs-pages.yml (build vs deploy), wiki-publish.yml (generate vs publish) and both release workflows (build vs publish).

Map of the repository

Reusable workflows (.github/workflows/)

File Family One line
python-ci.yml CI Lint, type check, test matrix, coverage, smoke test, container build, CI green
bash-ci.yml CI shellcheck, shfmt, tests, config lint, CI green
tofu-ci.yml CI fmt, validate, tflint, Trivy config scan, opt-in tofu test and opa test, plan on default branch
arduino-ci.yml CI Compile every sketch with pinned cores, host tests
python-fuzz.yml CI Atheris fuzzing for a fixed time per target
container-release.yml Release Build, test, scan, push multi-arch, sign, SBOM, provenance
python-docker-release.yml Release Old name of the above; forwards everything
verify-published.yml Release Verify a published image from outside
parallel-ci.yml CI One build, checks as parallel jobs sharing it, path rules that fail closed, CI green
ci-gate.yml CI CI green over the jobs a caller hands it
token-drift.yml Automation Fail when a vendored file no longer matches its pin, or (opt-in) the pin no longer matches the source repository's file
node-typecheck.yml Automation npm ci with scripts off, then tsc -p . from one directory; fixed commands, fixed egress list
pr-title-lint.yml Automation Fail a pull request whose title breaks the configured pattern or length limit
vendored-drift.yml Automation Fail when a vendored file or its generated output no longer matches its lock
upstream-sync.yml Automation Scheduled: pin an upstream release by commit SHA, hold it N days from when this job first saw it (record on the upstream-seen branch), build, open a pull request
repin.yml Automation Scheduled: open one pin-only pull request when a caller's GYST pins are behind the latest release (repin)
pin-comments.yml Automation Fail when a # vX.Y.Z comment on a SHA-pinned uses: does not name the pinned commit
base-image-digest.yml Release Scheduled: fail when a pinned base-image digest has a fixable finding its tag's current digest fixes
python-package-release.yml Release Build, check, publish to the GitHub release (PyPI via a direct pypa publish step in the caller's own job)
artifact-release.yml Release Build any file, sign it, attach it to the release
security.yml Security CodeQL, gitleaks, audit, dependency review, Semgrep, Snyk, Scorecard
dast.yml dast OWASP ZAP baseline, full (active) or api scan against a loopback service the caller starts, SARIF under zap
dependabot-auto-merge.yml Automation Auto-merge Dependabot bumps up to a size
project-sync.yml Automation Keep a GitHub Projects v2 board current
docs-pages.yml Automation Build docs, deploy to GitHub Pages
wiki-publish.yml Automation Replace a repository's wiki from a generated tree
threat-model.yml threat-model Validate an OWASP Threat Dragon model; on a pull request, require it to move with the AI surface
lory-audit.yml lory-audit Scheduled or on-demand Lory deep-dive audit through its pipeline scan API; advisory by default, fails closed on a bad call
agent-scan.yml agent-scan Optional, advisory static scans of agent skills and MCP tool definitions (Cisco AI Defense scanners); SARIF under agent-scan-skill and agent-scan-mcp

This repository's own pipeline (not reusable)

File Purpose
ci.yml actionlint, zizmor, the pytest contract, then every reusable workflow run against fixture/ at the PR's ref
security-self.yml security.yml run on this repository
fixture-image.yml Publishes ghcr.io/chiefgyk3d/gyst-fixture (from fixture/gyst-fixture/) through container-release.yml on a manual run or a push to main; fixture verify and fixture rescan check it, pinned by digest
dependabot-auto-merge-self.yml dependabot-auto-merge.yml run on this repository's own bumps
audit.yml The weekly baseline audit and risk-register issues
fleet-status.yml Weekly and on demand: scripts/fleet_status.py writes one table to the job summary and a JSON artifact (pins behind, open alert counts by severity, default-branch protection and required checks, newest push result). Counts only, contents: read, no secret; what the job token cannot read is n/a
wiki.yml Publishes this wiki from main; see Maintaining this wiki
main-verify.yml After a push to main, every six hours and by hand: start ci.yml by workflow_dispatch when the head has no required check, fail when one is red or missing (Verify main)

Everything else

Path What it is
.github/actions/doppler-secrets/ Composite action: fetch a Doppler config as masked env vars, or (export: outputs) as one masked JSON output, optionally narrowed by names. The source of the inlined copies of its decide step
.github/actions/wait-ci/ Composite action: pin a commit, wait for its required check and every other check on it, optionally squash-merge exactly that commit (wait-ci). Wraps scripts/wait-ci.sh
.github/actions/classify-changes/ Composite action: docs-only=true only when every path a pull request changes is on the caller's docs-only list, read from the API (Docs-only fast path). Wraps scripts/classify_changes.py
.github/actions/ci-gate/ Composite action: the body of a caller's CI green; a skip counts only for a named job when the classifier said docs only (Docs-only fast path). Wraps scripts/ci_gate.py
.github/actions/egress-policy-check/ Composite action: fail unless every egress policy input is exactly audit or block. The source of the inlined copies that open every job
examples/lory-audit-caller.yml Caller template for lory-audit.yml: a monthly cron plus workflow_dispatch, advisory, not a per-PR gate
docs/security/exceptions/ Dated, time-boxed security exceptions; EX-0001 is the westus2 harden-runner one
.github/dependabot.yml Weekly action, pip (the repository root and .github/requirements/) and docker bumps with a seven-day cooldown
BASELINE.md The settings every repository must meet, with the gh api command for each
baseline/repos.txt Which repositories the baseline covers
baseline/selected-actions.json The Actions allow-list every repository sets
baseline/risk-register.yaml Every advisory a pipeline ignores, with reason and expiry
scripts/audit_baseline.py Reads repository settings from the API: PASS / FAIL / UNKNOWN
scripts/fleet_status.py The fleet report fleet-status.yml runs: REST only, standard library only, counts only; also runnable locally with your own token
.githooks/pre-commit The gitleaks hook on staged changes, same pin as security.yml; copied byte for byte by new-repo.sh
.githooks/pre-commit The gitleaks hook on staged changes, same pin as security.yml; copied byte for byte by new-repo.sh
scripts/new-repo.sh Adopt or start a repository: writes callers, opens the PR, applies settings
scripts/repin.sh Re-pins a repository's GYST references to a release, pin-only, optionally as a pull request (repin)
examples/dependabot-gyst.yml Dependabot template for a caller: a group for GYST references and the 7-day cooldown (repin)
examples/dependabot-template.yml Dependabot template for any new repository: Actions, pip, docker, npm and gomod, each with a 7-day cooldown that the weekly audit reads (baseline)
scripts/wait-ci.sh The CI watcher: pinned head SHA, exit codes 0 to 6, optional pinned squash merge (wait-ci)
scripts/parallel_ci_plan.py The input validation and path rules parallel-ci.yml inlines byte for byte; also runnable locally
scripts/parallel_ci_gate.py The gate rule parallel-ci.yml and ci-gate.yml inline byte for byte
scripts/classify_changes.py, scripts/ci_gate.py The logic behind the classify-changes and ci-gate actions (Docs-only fast path)
scripts/verify_main.py The logic of main-verify.yml (assess, dispatch, confirm); stdlib only, run by the workflow from the checkout (Verify main)
scripts/check_token_drift.py The pin-and-source drift check token-drift.yml inlines byte for byte; also runnable locally
scripts/check_pr_title.py The bounded pull request title check pr-title-lint.yml inlines byte for byte; also runnable locally
scripts/check_vendored_drift.py The drift check vendored-drift.yml inlines byte for byte; also runnable locally
scripts/upstream_sync.py The release watcher, first-seen record and pin writer upstream-sync.yml inlines byte for byte; also runnable locally
scripts/check_pin_comments.py The pin-comment check pin-comments.yml inlines byte for byte; also runnable locally
scripts/base_image_digest.py The pin reader and report comparison base-image-digest.yml inlines byte for byte
scripts/fetch-release.sh fetch_release URL OUT SHA256: the one release-asset download bash-ci, tofu-ci, arduino-ci, security, container-release, python-package-release, base-image-digest and verify-published inline byte for byte: at most 5 tries with backoff and jitter inside 170 s, the pinned SHA-256 mandatory and fatal, the job token sent to github.com only where a job already holds one
scripts/trivy_sarif_summary.py The failed-scan diagnostic container-release.yml inlines byte for byte: rule id, path and count per hit and the totals by severity from the scan's SARIF (never the matched text); also runnable locally
scripts/doppler-ci-set.sh Set one Doppler secret without the value touching a command line
.github/requirements/ pip-audit and semgrep: the one-line .in and the hash lock security.yml carries inline
scripts/tool_locks.py Resolves those locks (--relock) and copies them into security.yml; --check fails on a difference
scripts/gen_wiki.py Builds this wiki from docs/wiki/ and renders each workflow's inputs table from its YAML
fixture/ The smallest project that exercises every job
tests/ The contract, as pytest
docs/DESIGN.md, docs/ROADMAP.md The reasoning, and what is done and next
docs/wiki/ The source of this wiki

Where each kind of change lives

I want to... I touch
Fix a pipeline bug for every project The reusable workflow here, then cut a tag; callers get a Dependabot PR
Add a scan step security.yml (and its documented input)
Allow a new third-party action The workflow, baseline/selected-actions.json, and a PUT to each repo (the point is that this is deliberate)
Ignore an advisory baseline/risk-register.yaml first, then the caller
Change what repositories must do BASELINE.md and scripts/audit_baseline.py together

Clone this wiki locally