Team setup
Org-wide contract gate
One config for every repository in your organization. A GitHub ruleset makes the contract check required on each repo's pull requests, without any repo adding a file.
Set it up once
- Make a central repo, for example acme/posturanet-gate. The repos it gates must be able to read it: internal or public visibility, or allow access under its Actions settings.
- Put posturanet-gate.yml (from the posturanet-pro package) in its .github/workflows/, and your org config next to it as posturanet-org.yml. It has the same shape as .posturanet.yml.
- Commit the posturanet-pro wheel at vendor/.
- Add the org secret POSTURANET_LICENSE, with the gate feature.
- Organization settings → Rulesets → New branch ruleset: target the repos and their default branch, add "Require workflows to pass before merging", and pick the workflow from the central repo.
How configs combine
A repo's own .posturanet.yml is laid over the org config key by key, so a team can set its own contracts folder or labels and keep everything else. The result is exactly the check contract check --source runs.
What it checks
It runs offline, with no AWS and no Terraform. BLOCK (exit 5) or UNKNOWN (exit 3) fails the "PosturaNet contract" check, so the PR can't merge until it's resolved.
$ posturanet gate --org-config posturanet-org.yml --repo .