Skip to main content
Use kernite check in CI/CD to gate releases when OpenAPI write operations are missing policy coverage.
  1. Export or fetch OpenAPI JSON.
  2. Run strict coverage check.
  3. Publish machine-readable report as a build artifact.
  4. Fail the pipeline on coverage violations.
Exit behavior:
  • exit 0: coverage valid
  • exit 1: coverage violations (strict mode)
  • exit 2: input/parse errors

Optional Artifact-Aware Gate

If you generate artifacts in CI, validate mapping + bundle consistency too:

GitHub Actions Example

Rollout Strategy

  • Early rollout: run --no-strict and monitor reports without blocking merges.
  • Enforcement rollout: switch to strict mode and block on exit code 1.
  • Keep reports as artifacts for audit and regression diffing.