Repository navigation
Lessons learned
Each of these cost at least an afternoon. They are kept in on purpose: the mistakes are the curriculum. The README's Lessons learned the hard way is the authoritative list; this page tells them as lessons with the principle underneath.
A tag's SHA is not a commit's SHA. git ls-remote --tags lists an annotated tag twice; the ^{} line is the commit.
Four of the first pins here pointed at tag objects. GitHub resolved them; Dependabot would not have.
Principle: verify the thing you are pinning is the thing the tool expects, before the tool is the one to tell you.
harden-runner's allow-list is one space-separated line. A YAML literal block keeps its newlines, the agent matches
nothing and blocks everything, including PyPI. A wildcard invalidates the whole list. A test now holds every default
to one sorted line of host:port.
Principle: when a format is fragile, test the format, not just the values.
GitHub's immutable OIDC subject is on by default in newer repositories. A repository created from mid-2026
sends repo:OWNER@<owner-id>/REPO@<repo-id>:ref:... as the token's sub, and an identity listing only the plain form rejects
it. Eight repositories failed every Doppler fetch on 2026-10-03. The identities now list both forms.
Principle: accept both the old and new form of an identifier you do not control, and test the first push to main on any new repository.
The Actions allow-list needs the subdirectory forms too. snyk/actions@* does not cover snyk/actions/setup;
github/codeql-action@* does not cover github/codeql-action/init. And a composite action's own uses: lines count:
aquasecurity/trivy-action calls aquasecurity/setup-trivy, and every release job failed at start with no annotation.
Principle: read what a dependency itself depends on before you allow it.
Snyk's pip resolver refuses a universal lock. It exits 2 on "Missing required packages" whenever a line names a package not
installed (marker-gated pins, extras). --skip-unresolved=true is Snyk's documented answer and changed nothing, measured on
four repositories. The workflow now scans a pip freeze of what the lock actually installed, written over the lock so the SARIF
names a real file.
Principle: measure before believing the docs, and scan what actually ships rather than a description of it.
Trivy's setuptools finding may be pip's. pip vendors its own setuptools and msgpack under pip/_vendor, so upgrading
setuptools clears nothing. pip uninstall -y pip as the last build step does, and a runtime image has no use for pip anyway.
Principle: find which file the scanner is really pointing at.
A required review count of one is a required admin override when one person holds write. GitHub will not let an author approve their own PR. And with dismiss-stale on, every Dependabot rebase dismissed the approval. Set the count to zero and let the required check do the gating. Principle: a control that is always bypassed trains people to bypass; pick the control that is actually exercised.
Codecov needs no token on a public repository. use_oidc: true and the job's own identity is enough. The token in every
uploading repository was one more thing to rotate for nothing.
Principle: before managing a secret, check whether the system accepts an identity instead.
A deleted code-scanning configuration leaves its analyses in the API. GitHub records the deletion as one empty analysis; the old ones stay listed and look alive. The pull-request check summary is the truth. Principle: know which view is authoritative before trusting it.
The first block-mode run may log IPs, not names. harden-runner's audit summary showed Snyk's hosts as addresses only, so that list came from Snyk's docs and was confirmed by a clean run rather than measured first. Principle: say honestly where a list came from and what confirmed it.
Fetch the tags before you cut one. Another session cut v1.3.0 while this one believed the latest was v1.2.0; the v1.2.1 that followed would have moved every caller's pin backwards. Principle: read the shared state immediately before you write to it.
Every value in a Doppler config is exported. A CI config sharing an environment with runtime secrets turns every runtime secret into a CI secret in every job. Separate project, separate config, only the names the pipelines read. Principle: scope credentials by what reads them, not by convenience.
Snyk's free plan meters tests per month across the account. Ten repositories scanning on every push spent a month of Code tests
in one busy day (34 runs). Snyk now runs weekly by default; snyk-on: push is opt-in.
Principle: model quota like any other shared resource; default to the cheap schedule.
The REST API reports force pushes as allowed whenever a GraphQL bypassForcePushAllowances list exists, even when
allowsForcePushes is false. The list is a separate grant, and the REST view folds it into the answer. Clear it with
updateBranchProtectionRule(bypassForcePushActorIds: []) and check both APIs afterward.
Principle: when two views of one setting can differ, read both before saying it is off.
A caller must grant every permission a called reusable workflow declares, even on jobs that will be skipped. id-token: write
for the Snyk or Scorecard job is the usual one. GitHub checks the grants at startup, so without it every run fails before any job
starts. A reviewer caught this on a Copilot pull request; the row is in Troubleshooting.
Principle: a static check cannot know which branch you meant to skip.
A pull request that conflicts with its base gets no pull_request runs at all. GitHub has no merge commit to test, so
nothing starts and nothing is red. "CI is not running" can mean "rebase me".
Principle: absence of a signal is a state to explain, not a pass.
DAST context files: check them with the parser semantics ZAP uses. Three checks passed while ZAP did something else: mixed-content
XML (text split across child elements), Java-regex dialect differences (unescaped dots, [::1] read as a character class,
quantifiers after the port) and redaction done by string replacement. Each was found by adversarial review and then reproduced
against ZAP 2.17.0's own classes. Whitelist grammars beat blocklists.
Principle: a validator that parses differently from the consumer is a second, wrong parser.
On the same pull request a Claude-model reviewer running hostile inputs and Codex's adversarial review caught different classes of bug. Use both on security-sensitive workflows. Principle: reviewers differ in what they notice, so one clean review is not coverage.
2026-10-08: the hand-written wiki pages went stale at every release. The pin in Getting started still said v1.14.0
after v1.15.0, Home never named the release, and the Roadmap listed the released contents as "not yet released". The
generated tables were current the whole time; the typed versions and pins were not, because no release step touched them.
The generator now fills {{latest_release}}, {{latest_pin}}, {{latest_release_date}} and the Roadmap's unreleased
list from git, and a test fails on a literal 40-hex SHA or a # vX.Y.Z pin comment in a hand page.
Principle: a fact that changes at a known event is computed at that event, not remembered.
Three smaller lessons from the same week's re-pin work:
- A green pin-only re-pin is merged by the lead, not queued for a human to look at; the pin is the whole change.
- A re-pin that jumps several versions can hit older defaults. Moving a caller across many GYST versions at once turned on defaults added in between (non-root image checks, hadolint in the container release), and the caller went red for reasons that were not in the re-pin.
- The background security review earned its keep. It caught a test filter that weakened a pin check, so a pin that should have failed passed.
- Make the rule a test. A rule that is only written down is a wish.
-
Fail closed. An unrecognised update type is never merged; an unreadable check is
UNKNOWN, notPASS. - Separate the job with the code from the job with the power.
- Prefer identity to secrets; where a secret is unavoidable, put it in one place that can be listed.
- Record exceptions, with an expiry. An exception that cannot expire becomes policy.
- Say how you measured.
Generated from docs/wiki/ at commit f3af2fa0bae3. Do not edit this wiki: the next push to main replaces every page. Corrections go to docs/wiki/ by pull request.
GYST
- Home
- Why GYST exists
- Getting started
- Design rules
- Secrets: Doppler and OIDC
- Security scanning explained
- The baseline and the weekly audit
- Releases and supply chain
- Keeping a project board current
- Adopting GYST in your own project
- Glossary
- Roadmap
Learn and contribute
- Learning path
- Which workflow do I need?
- Repository map
- Egress control
- Troubleshooting
- Lessons learned
- Testing and the contract
- Contributing and developing
- Maintaining this wiki
- Verify main
- FAQ
CI
Security
Release
- container-release
- python-docker-release
- python-package-release
- artifact-release
- verify-published
- base-image-digest
Docs and project
- docs-pages
- wiki-publish
- project-sync
- threat-model
- lory-audit
- agent-scan
- token-drift
- node-typecheck
- pr-title-lint
- vendored-drift
- upstream-sync
- repin
- pin-comments
Tools