Repository navigation
Contributing and developing
Pull requests are welcome; this is a small single-maintainer project with no SLA. Security problems go through the private channel in SECURITY.md, not a public issue.
pip install -r requirements-dev.txt
pytest # the contract
ruff check tests/ scripts/ fixture/ && ruff format --check tests/ fixture/
actionlint # workflow syntax
zizmor --offline . # workflow security
python scripts/gen_wiki.py --check # the wiki generates cleanly(python scripts/audit_baseline.py needs a token with admin read on the repositories, and for an organization's repositories an owner's token or the audit App's; you rarely need it.)
-
pytestpasses. If a test names a fix, apply that fix rather than editing the test to pass. - If you added a reusable workflow, see the checklist below.
- If you changed an input, its README table row changed too (a test checks).
- If you changed behaviour a person reads about, the wiki page changed in the same PR (see Maintaining this wiki).
- If you added a third-party action,
baseline/selected-actions.jsonlists it, including any subdirectory form and any action itsaction.ymlcalls. Read the action'saction.ymlfor nesteduses:. - If you added a write permission,
ALLOWED_WRITESintests/test_workflows.pylists it with a reason.
- Start from
contents: readat the top; give each job its ownpermissions:, atimeout-minutes, and harden-runner as the first step (disable-sudo: true). - Pin every action to a commit SHA with a
# vX.Y.Zcomment. - Every checkout sets
persist-credentials: false. - Pass anything untrusted (and every caller-supplied command) through
env:, never${{ }}inrun:. - Declare every input with a description and default; add the README table row.
- Add
egress-policy,allowed-endpoints(one sorted line ofhost:port),extra-allowed-endpoints,timeout-minutes. - If it runs the caller's code, give that job no write token and no OIDC; put publishing in a separate job.
- Add it to the
REUSABLElist intests/test_workflows.py(andDOPPLERif it fetches secrets). -
Dogfood it: call it from
ci.ymlagainstfixture/at./.github/workflows/<name>.yml, never publishing. - Add it to the
CI greengate'sneeds:inci.yml. - Update the README ("What is in the repository"), BASELINE if settings change, the roadmap if it closes an item, and the wiki (Which workflow do I need?, that workflow's page, Repository map).
- Comments say why, not what. The repository is meant to be read.
- Failure messages name the fix.
- Prefer a small test that fails honestly over a long comment.
- "Measured" beats "guessed" for allow-lists and defaults. Say how you measured.
Callers' Dependabot follows the tags, so a tag is the release.
git fetch --tags && git tag -l | sort -V | tail -3 # see what exists BEFORE choosing a number
git tag -a vX.Y.Z <sha> -m "vX.Y.Z: ..."
git push origin vX.Y.ZFetch first. Another session once 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, and was deleted and re-cut. Version tags are immutable (a ruleset forbids deleting or moving them),
so a mistaken number is superseded by the next one, not reused. zizmor fails a caller whose # vX.Y.Z comment names a tag that does not exist.
Some contributions are made by automated sessions. The same rules apply, and there is one more: such sessions can commit unsigned, which is part of why signed commits are not yet required. Develop on the branch you were given and open a draft pull request.
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