Repository navigation
Learning path
You can read this repository as a course in building a hardened CI/CD setup. Each stage below says what to read, what you should understand afterwards, and an exercise that makes it stick. Nothing needs an account beyond a free GitHub one unless noted.
Tip: the repository was written to be read. Comments in the workflow files say why a line exists, and Lessons learned keeps the mistakes in.
Read: Home and the opening of docs/DESIGN.md.
You should be able to say: why ten copies of a pipeline drift, why GitHub's encrypted secrets are hard to audit (they are write-only), and what "a secret leaving a CI job" means.
Exercise: open the Actions tab of any project that calls these workflows
(for example typo-sniper).
Count how many lines the caller workflows have. Then open
python-ci.yml here and count its lines. That ratio is the point of the repository.
Read: Glossary (reusable workflow,
caller, workflow_call), then Getting started.
You should be able to say: how a caller passes inputs and secrets, why
secrets are passed by name and never with secrets: inherit, and why a caller
pins a commit SHA instead of @main.
Exercise: in a scratch repository, write a caller for
bash-ci.yml (it needs no secrets and no Docker). Pin it to a real commit:
git ls-remote --tags https://github.com/ChiefGyk3D/git-your-ship-together 'refs/tags/v*'Take the line ending in ^{} for the tag you want, because that is the
commit; the line without it is the tag object. Push, and watch the run.
Read: Design rules, then Secrets: Doppler and OIDC.
You should be able to say: the three ways a job leaks a secret, which design rule closes each, and why the job that runs your tests holds no identity token.
Exercise: pick any three rules from the page. For each, write down the
attack it prevents as a story (who does what, what they get). Then find the
test that enforces it in
tests/test_workflows.py
and break the rule on a branch (remove a persist-credentials: false, say).
Run pytest and read the failure message. Revert.
Read: Releases and supply chain and the glossary entries for cosign, SBOM, SLSA provenance and attestation.
You should be able to say: what a keyless signature proves, what an SBOM is
for, and why verifying from outside the producer (verify-published.yml)
matters.
Exercise: verify a published image the way a consumer would. These commands are in the README under "Container release":
cosign verify ghcr.io/chiefgyk3d/typo-sniper:latest \
--certificate-identity-regexp '^https://github.com/ChiefGyk3D/git-your-ship-together/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/chiefgyk3d/typo-sniper:latest --owner ChiefGyk3DRead the certificate that comes back. Which workflow does it name? Why is it this repository's workflow and not the calling project's?
Read: Egress control.
You should be able to say: the difference between audit and block, why
the allow-list is one space-separated line, and how a new dependency announces
itself.
Exercise: call a workflow with egress-policy: audit, open the run's
summary, and read the list of hosts the job talked to. Switch to block, then add
a curl https://example.com step and watch it fail with
domain not allowed.
Read: The baseline and the weekly audit.
You should be able to say: why a required review count of zero is more secure on a one-person repository than one, what the Actions allow-list adds on top of SHA pins, and why an audit that cannot check something reports UNKNOWN instead of PASS.
Exercise: run the audit against a repository you own:
python scripts/audit_baseline.py owner/repoFix one FAIL using the gh api command from BASELINE.md, and run it again.
Read: Testing and the contract.
You should be able to say: why structural tests (does the YAML have the right shape) and dogfooding (run the workflow against a real project) are both needed, and how a rule becomes a build failure.
Exercise: add a new rule. For example, "every reusable workflow has a
name: starting with a capital letter". Write the test in tests/, watch it
pass or fail honestly, and read how the existing tests are parametrised over the
REUSABLE list.
Read: Contributing and developing.
Exercise: make a small improvement (a docs fix is a fine start), run the
checks locally, open a pull request, and read what the CI green gate on this
repository's own pipeline does with it.
- Build the same pattern for your own repositories: see Adopting GYST in your own project and the "Using this for your own repositories" section of docs/DESIGN.md.
- Read the roadmap for what is unfinished; some of it is a good first contribution.
- Look at the other projects that call these workflows; the list is
baseline/repos.txt.
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